From 595b32cf97445e60f9b6fbad3528908b1c478b48 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Thu, 3 Nov 2022 17:37:21 +0100 Subject: [PATCH] Fix quota return value --- core/admin/mailu/internal/views/dovecot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/mailu/internal/views/dovecot.py b/core/admin/mailu/internal/views/dovecot.py index 2cb2d526..ab33b220 100644 --- a/core/admin/mailu/internal/views/dovecot.py +++ b/core/admin/mailu/internal/views/dovecot.py @@ -29,7 +29,7 @@ def dovecot_userdb_dict_list(): 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) return flask.jsonify({ - "quota_rule": "*:bytes="+quota[0] + "quota_rule": f"*:bytes={quota[0]}" })