Rank 2: Process
Hey I made a python cron function that's just adding values to collection, but when I deploy it, I get this error
import jsonimport pandas as pdfrom appwrite.client import Clientfrom appwrite.services.databases import Database
def init_client(): # Initialize the Appwrite client client = Client() client.set_endpoint("https://cloud.appwrite.io/v1") client.set_project("646769a1263324aecec0") client.set_key("API_KEY")
return client
def main():
client = init_client() database = Database(client)
database.create_document("646a552f4564180c1531", { 'company_name': "Utopia", 'job_title': "Software Engineer", 'about_company': "Utopia is a software company that builds software for the future", 'location': "Remote", 'skills_required': "Python, Java, C++", 'job_responsibilities': "Build software for the future", 'job_requirements': "Must have 5 years of experience", 'logo': "https://www.utopia.com/logo.png" }, read=['*'])
if __name__ == "__main__": main()```
Error: