1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-14 10:53:30 +02:00

Fix quota return value

This commit is contained in:
Alexander Graf 2022-11-03 17:37:21 +01:00
parent bec0b1c3b2
commit 595b32cf97
No known key found for this signature in database
GPG Key ID: B8A9DC143E075629

View File

@ -29,7 +29,7 @@ def dovecot_userdb_dict_list():
def dovecot_userdb_dict(user_email): def dovecot_userdb_dict(user_email):
quota = models.User.query.filter(models.User.email==user_email).with_entities(models.User.quota_bytes).one_or_none() or flask.abort(404) quota = models.User.query.filter(models.User.email==user_email).with_entities(models.User.quota_bytes).one_or_none() or flask.abort(404)
return flask.jsonify({ return flask.jsonify({
"quota_rule": "*:bytes="+quota[0] "quota_rule": f"*:bytes={quota[0]}"
}) })