diff options
Diffstat (limited to 'kpov_judge/tasks/custom_rdate')
-rw-r--r-- | kpov_judge/tasks/custom_rdate/task.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kpov_judge/tasks/custom_rdate/task.py b/kpov_judge/tasks/custom_rdate/task.py index 2986242..573be62 100644 --- a/kpov_judge/tasks/custom_rdate/task.py +++ b/kpov_judge/tasks/custom_rdate/task.py @@ -59,6 +59,7 @@ computers = { networks = { 'net1': {'public': False}, 'test-net': {'public': True} } +# TODO: (polz) pick the parameters you need! ASAP! params_meta = { 'IP_NM': {'descriptions': {'si': 'Naslov maliNetworkManager'}, 'w': False, 'public':True, 'type': 'IP', 'generated': True}, 'DNS_NM': {'descriptions': {'si': 'DNS za maliNetworkManager'}, 'w': False, 'public':True, 'type': 'IP', 'generated': True}, @@ -91,8 +92,12 @@ def task(IP_NM, DNS_NM, IP_static, DNS_static): import datetime import random def gen_params(user_id, params_meta): + # TODO: (polz) tole nima smisla. Za začetek datetime in random + # ne bosta importana v test_task.py, kjer se bo tale koda izvajala. + # Prosim, s kolegi se pogovorite in si izmislite, katere parametre bi + # lahko uporabili. crke = "ABCDEFGHIJKLMNOPRSTUVZXYQW" - time = datetime.datetime.now().strftime("%Y%m%d%H%M%S) + time = datetime.datetime.now().strftime("%Y%m%d%H%M%S") sifra = "" for x in time: for i in x: |