This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Using CRON and error related to 'expire_at' #609
Unanswered
jmetzg11alpine
asked this question in
Help
Replies: 1 comment 1 reply
-
You must list |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can run this code locally and insert data while using the expire_at key word. But when I try to do the same thing with code deployed on DETA and using CRON I get the error: TypeError: insert() got an unexpected keyword argument 'expire_at'
`from deta import Deta
from deta import app
import datetime
import requests
deta = Deta('a0icdh3t_S3fjAUgo41jpRBYQZUa3GQQAzxBksBn4')
news = deta.Base('news')
@app.lib.cron()
def update_datebase(event):
`
Beta Was this translation helpful? Give feedback.
All reactions