Skip to content

Commit

Permalink
fix: clean m00_strings table on updates. (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmctune authored Mar 20, 2024
1 parent fb5fc7d commit cc2ed84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/common/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def download_custom_files():
response = requests.get(GITHUB_CUSTOM_TRANSLATIONS_ZIP_URL, timeout=15)

if response.status_code == 200:
db_query("DELETE FROM m00_strings")
zfile = ZipFile(BytesIO(response.content))
for obj in zfile.infolist():
if obj.filename.endswith('/'): # directory
Expand Down

0 comments on commit cc2ed84

Please sign in to comment.