Skip to content

Commit 622fbbb

Browse files
authored
Merge pull request #82 from pennlabs/laundry-android-fixes
Change the non-update status to -1, add underscores in high rise halls
2 parents 82f3e75 + 9f352ab commit 622fbbb

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

penn/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '1.5.3'
1+
__version__ = '1.6.4'
22

33
from .registrar import Registrar
44
from .directory import Directory

penn/laundry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def create_hall_to_link_mapping(self):
4848
for hall in halls:
4949
hall_name = hall.contents[0].string
5050
hall_name = hall_name.replace("/", " ") # convert / to space
51+
if hall_name.split()[0] in ["Harrison", "Harnwell", "Rodin"]:
52+
hall_name = hall_name.replace(" ", "_", 1)
5153
self.hall_to_link[hall_name] = ALL_URL + hall.contents[0]['href']
5254
self.id_to_hall[str(counter)] = hall_name
5355
self.hall_id_list.append({"hall_name": hall_name, "id": counter})
@@ -73,7 +75,7 @@ def update_machine_object(cols, machine_object):
7375
# edge case that handles machine not sending time data
7476
diff = int(machine_object["running"]) - len(machine_object["time_remaining"])
7577
while diff > 0:
76-
machine_object["time_remaining"].append("not updating status")
78+
machine_object["time_remaining"].append(-1)
7779
diff = diff - 1
7880

7981
return machine_object

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
url='https://github.com/pennlabs/penn-sdk-python',
88
author='Penn Labs',
99
author_email='admin@pennlabs.org',
10-
version='1.6.3',
10+
version='1.6.4',
1111
packages=['penn'],
1212
license='MIT',
1313
package_data={

0 commit comments

Comments
 (0)