From a5449b329474043be10270af65ee540ffaba2085 Mon Sep 17 00:00:00 2001 From: Their Name Date: Sun, 12 Dec 2021 23:21:01 +0000 Subject: [PATCH] fix export edge case --- users/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/export.py b/users/export.py index 4ab12317..da94058a 100644 --- a/users/export.py +++ b/users/export.py @@ -102,7 +102,7 @@ def export_marks_task(user): for mark in marks: game = mark.game title = game.title - summary = ','.join(game.genre) + ' / ' + ','.join(game.platform) + ' / ' + game.release_date.strftime('%Y-%m-%d') + summary = ','.join(game.genre) + ' / ' + ','.join(game.platform) + ' / ' + (game.release_date.strftime('%Y-%m-%d') if game.release_date else '') tags = ','.join(list(set(map(lambda t: t['content'], game.get_tags_manager().values())))) world_rating = (game.rating / 2) if game.rating else None timestamp = mark.edited_time.strftime('%Y-%m-%d %H:%M:%S')