Skip to content

Commit

Permalink
added console
Browse files Browse the repository at this point in the history
  • Loading branch information
frankzl committed Nov 11, 2018
1 parent 49451cb commit 7cbffdb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 136 deletions.
3 changes: 3 additions & 0 deletions bin/bahn
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

python
136 changes: 0 additions & 136 deletions db_console/data.csv

This file was deleted.

17 changes: 17 additions & 0 deletions db_console/db_user_program.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os

if __name__ == "__main__":

departure = input("Start Station:\t")
arrival = input("End Station:\t")

print("specify date range: Format (yyyy-mm-dd)")
from_date = input("Begin Date:\t")
to_date = input("End Date:\t")

# run command "python db_info.py -f "Oldenburg (Oldb) Hbf" -t München Hbf -fd 2018-11-11 -td 2018-11-20"
path = os.path.dirname(os.path.realpath(__file__))

command = "python "+ path +"/db_info.py -f "+ departure + " -t " + arrival + " -fd " + from_date + " -td " + to_date

print(command)

0 comments on commit 7cbffdb

Please sign in to comment.