Skip to content

Commit

Permalink
Correctly resolve permalinks with no expiry date
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 28, 2023
1 parent 517f214 commit af1e003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def get(self):
sql = sql_text("""
SELECT data
FROM {table}
WHERE key = :key AND expires >= CURRENT_DATE
WHERE key = :key AND (expires IS NULL OR expires >= CURRENT_DATE)
""".format(table=permalinks_table))
try:
data = json.loads(configconn.execute(sql, key=key).first().data)
Expand Down

0 comments on commit af1e003

Please sign in to comment.