Created
May 22, 2018 17:40
-
-
Save drobilc/76348b5862acca08e37fafb43177c36d to your computer and use it in GitHub Desktop.
Izbere restavracijo v kateri si že jedel.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from studentskaprehrana import StudentskaPrehrana | |
import datetime | |
import random | |
email = "" | |
geslo = "" | |
studentska_prehrana = StudentskaPrehrana(email, geslo) | |
date_to = datetime.datetime.now() | |
date_from = datetime.datetime(year=2017, month=10, day=1) | |
transactions = studentska_prehrana.getTransactions(date_from, date_to) | |
restaurants = list(set([transaction["restaurant"] for transaction in transactions])) | |
print("Greva v {}.".format(random.choice(restaurants))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment