Merge branch 'testing' into dpp

This commit is contained in:
Cayo Puigdefabregas 2023-06-16 11:55:41 +02:00
commit 8f333e04ae
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ logger = logging.getLogger(__name__)
def create_code(context): def create_code(context):
_id = Device.query.order_by(Device.id.desc()).first() or 3 _id = Device.query.order_by(Device.id.desc()).first() or 1
if not _id == 3: if not _id == 1:
_id = _id.id + 1 _id = _id.id + 1
return hashcode.encode(_id) return hashcode.encode(_id)