# HG changeset patch # User Goffi # Date 1620329948 -7200 # Node ID 67aebefb44fceb8184274fb1a685954502259502 # Parent 1658472abd7722bc8d4d602aea9ca68535a107be core (memory/sqlite): return 0 instead of None when user has no file yet diff -r 1658472abd77 -r 67aebefb44fc sat/memory/sqlite.py --- a/sat/memory/sqlite.py Thu May 06 18:11:33 2021 +0200 +++ b/sat/memory/sqlite.py Thu May 06 21:39:08 2021 +0200 @@ -993,7 +993,7 @@ query, (owner.userhost(), self.profiles[client.profile]) ) - return ret[0][0] + return ret[0][0] or 0 def _fileUpdate(self, cursor, file_id, column, update_cb): query = 'SELECT {column} FROM files where id=?'.format(column=column)