Skip to content

Commit

Permalink
opravy čekadla + čd
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkasparek committed Nov 8, 2024
1 parent dbcc81c commit 58c01ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 000_cekani.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

print(f"Nýčko budeme čekat {doba} sekund.")

with open("001_log.txt", "w+", encoding="utf-8") as log:
log.write(f"{doba} s")

sleep(doba)

print("A do práce!")
2 changes: 1 addition & 1 deletion 001_cd_scrapovani.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def cd(odkud, kam, pocet_dni=0):
random.shuffle(trasy_b)
random.shuffle(trasy_c)

trasy = trasy_a + trasy_b[0:2] + trasy_c[0]
trasy = trasy_a + trasy_b[0:2] + [trasy_c[0]]

dny = [0, 1, 2, 3, 4]
dny.append(random.randint(5, 7))
Expand Down

0 comments on commit 58c01ae

Please sign in to comment.