Open brandantck opened 10 months ago
datetime
is not json serializable so that is most likely causing the issue. I'm not sure the full context here so this my not be possible but if you can convert your dates to an iso string before dumping it should fix the issue.
An example of how to convert:
condition_start_datetime = datetime.datetime(2010, 4, 1, 0, 0)
converted = condition_start_datetime.isoformat()
Maybe you can use plugins
When i run the meilisync refresh
command, it doesnt seem to run the plugin pre_event
or post_event
functions
Yes, that's a problem...
Ah okay, so currently, the plugins are only loaded and used on the meilisync start
command?
You can try latest code now
Hello
the postgres timestamp with time zone
got converted to unix format for initial data.
but the format is corrected after I update the date in the database.
So the timestamp
is only work correctly for newly inserted/updated data.
I use long2ice/meilisync:dev
docker image.
For initial data
After update
Note: I only update the date of the second item.
Is there any new settings need to be set?
Postgres: v15
config.yml
I am trying to sync a table from a Postgres database with the column type:![image](https://github.com/long2ice/meilisync/assets/56997231/f3a95dd9-03e9-4f88-ad8c-38afbb74ee73)
timestamp
, and its throwing this error.This is an example of a row in the database![image](https://github.com/long2ice/meilisync/assets/56997231/cb80592d-2bbd-47a0-81fe-3be34afa41db)
Seems like the error occurs when its trying to do a
json.dumps
into the progress.json file.Edit: Tried with redis but still getting the same error, issue might not lie with writing to progress