Verified Commit 854fa80e authored by Martin Matějek's avatar Martin Matějek
Browse files

wip: cleanup and minor refactoring

parent 4e2de204
"""Access and control functions of update approvals."""
import datetime
import os
import time
import typing
......@@ -131,6 +131,10 @@ def changes():
def approval():
"""Send notification about approval request."""
apprv = approvals.current()
if apprv is None:
# TODO: Is it ok to just return?
changelist = ""
for pkg in apprv["plan"]:
changelist += f"\n{pkg['op'].title()} {pkg['name']} {'' if pkg['new_ver'] is None else pkg['new_ver']}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment