simjanos-dev / LinguaCafe

LinguaCafe is a self-hosted software that helps language learners read foreign languages.
https://simjanos-dev.github.io/LinguaCafeHome/
GNU General Public License v3.0
888 stars 32 forks source link

fix: add supported dictionary timestamps #350

Closed cblanken closed 2 months ago

cblanken commented 2 months ago

Generate created_at and updated_at timestamps for all supported import dictionaries in the dictionary import service.

Fixes issue #322

I tested each dictionary (only 1 test dictionary each for the wiktionary and dictcc) and the timestamps looked good.

image

simjanos-dev commented 2 months ago

Sorry, my github issue was not clear, this is only part of the problem. When you import a dictionary, it gets its own database table (the table names are visible in your picture, plus any table that starts with dict_), inside those tables it does not have timestamps either.

Would you like to work on this part too, or would you like me to merge this in, and I can do the other part later? I plan to refactor this file a bit, so I would work on this anyways.

cblanken commented 2 months ago

Oh, I didn't realize.

I'll go ahead and fix up the other tables too :+1:

simjanos-dev commented 2 months ago

Thank you!