Compare commits
5 commits
6cb41a1263
...
191177aea0
Author | SHA1 | Date | |
---|---|---|---|
191177aea0 | |||
3bfdde10e8 | |||
b5de60d681 | |||
0204bd2444 | |||
3fd0c7f917 |
3 changed files with 2 additions and 9 deletions
|
@ -2,14 +2,9 @@
|
||||||
# basic libs
|
# basic libs
|
||||||
|
|
||||||
psycopg2
|
psycopg2
|
||||||
html5lib
|
|
||||||
ipython
|
ipython
|
||||||
Pillow
|
Pillow
|
||||||
pilkit>=3.0 # Kvůli kompatibilitě s Pillow>=10.0.0
|
pilkit>=3.0 # Kvůli kompatibilitě s Pillow>=10.0.0
|
||||||
pytz
|
|
||||||
six
|
|
||||||
pexpect
|
|
||||||
traitlets
|
|
||||||
Unidecode
|
Unidecode
|
||||||
|
|
||||||
# Django and modules
|
# Django and modules
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from django import template
|
from django import template
|
||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from pytz import timezone
|
|
||||||
from mamweb.settings import TIME_ZONE
|
from mamweb.settings import TIME_ZONE
|
||||||
import logging
|
import logging
|
||||||
register = template.Library()
|
register = template.Library()
|
||||||
|
|
|
@ -4,7 +4,6 @@ import datetime
|
||||||
|
|
||||||
from django.contrib.auth.models import Permission
|
from django.contrib.auth.models import Permission
|
||||||
from django.contrib.auth.models import Group
|
from django.contrib.auth.models import Group
|
||||||
from pytz import timezone
|
|
||||||
import random
|
import random
|
||||||
import lorem
|
import lorem
|
||||||
import django.contrib.auth
|
import django.contrib.auth
|
||||||
|
@ -177,13 +176,13 @@ def gen_organizatori(rnd, osoby, last_rocnik):
|
||||||
year=1993 + pusobnost,
|
year=1993 + pusobnost,
|
||||||
month=rnd.randint(1, 12),
|
month=rnd.randint(1, 12),
|
||||||
day=rnd.randint(1, 28),
|
day=rnd.randint(1, 28),
|
||||||
tzinfo=timezone('CET'),
|
tzinfo=datetime.timezone.utc,
|
||||||
)
|
)
|
||||||
do = datetime.datetime(
|
do = datetime.datetime(
|
||||||
year=od.year + rnd.randint(1, 6),
|
year=od.year + rnd.randint(1, 6),
|
||||||
month=rnd.randint(1, 12),
|
month=rnd.randint(1, 12),
|
||||||
day=rnd.randint(1, 28),
|
day=rnd.randint(1, 28),
|
||||||
tzinfo=timezone('CET'),
|
tzinfo=datetime.timezone.utc,
|
||||||
)
|
)
|
||||||
#aktualni organizatori jeste nemaji vyplnene organizuje_do
|
#aktualni organizatori jeste nemaji vyplnene organizuje_do
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue