mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-21 22:14:57 +02:00
explicit postgres type numbers in anti-conversion table.
This commit is contained in:
parent
8f2b42309d
commit
1c0a4e252a
@ -102,7 +102,7 @@ class Database(Compat):
|
||||
)
|
||||
psycopg2.extensions.register_type(
|
||||
psycopg2.extensions.new_type(
|
||||
psycopg2.extensions.DATE.values + psycopg2.extensions.TIME.values,
|
||||
(1082, 1083, 1266),
|
||||
"DATE2INT",
|
||||
lambda value, curs: time.mktime(value.timetuple())
|
||||
if value is not None
|
||||
|
Loading…
x
Reference in New Issue
Block a user