Skip to content

Commit

Permalink
rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
WaterHyacinthInNANHU committed Sep 10, 2021
1 parent 4bcf1fc commit 2bc5506
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
test*
activate_env.bat
dblpSearch.bat
dblpSearch.bat
output/
8 changes: 4 additions & 4 deletions dblpSearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from config import settings

# load parameters
CONFERENCES = settings['conferences']
NUMBER_PER_CONFERENCE = int(settings['number_per_conference'])
PUBLISHERS = settings['publishers']
NUMBER_PER_PUBLISHER = int(settings['number_per_publisher'])
NUMBER_PER_SEARCH = int(settings['number_per_search'])

# init output file
Expand All @@ -20,9 +20,9 @@
while True:
terms = input("Search for: ")
while True:
mode = input("Search by conferences? [y/n]:")
mode = input("Search by publishers? [y/n]:")
if mode == 'y':
info = db.search_by_conference(terms, CONFERENCES, NUMBER_PER_CONFERENCE)
info = db.search_by_conference(terms, PUBLISHERS, NUMBER_PER_PUBLISHER)
break
elif mode == 'n':
info = db.search(terms, NUMBER_PER_SEARCH)
Expand Down
4 changes: 2 additions & 2 deletions settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"conferences": [
"publishers": [
"sigcomm", "mobicom", "nsdi", "sensys", "mobisys", "imwut" , "ipsn", "infocom", "mobihoc"
],
"number_per_search": 100,
"number_per_conference": 100,
"number_per_publisher": 100,
"entry_style": {
"style": "rainbow",
"line_height": 30,
Expand Down

0 comments on commit 2bc5506

Please sign in to comment.