Skip to content

Commit

Permalink
removed print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadev committed Aug 21, 2021
1 parent b3bf8ed commit 907f88d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
5 changes: 0 additions & 5 deletions app/api_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def _get_prayer_times(
:param time_zone: The time zone where you want prayer times
:return: Prayer times in dict format
"""
print(time)
location = get_location()

if latitude is None or longitude is None:
Expand Down Expand Up @@ -118,8 +117,6 @@ def _get_prayer_times(
results = prayer_times_response.json()["results"]
for prayer_time in results:
results[prayer_time] = re.sub("%", "", results[prayer_time])
print("Results: ")
print(results)
return results


Expand All @@ -141,7 +138,6 @@ def get_prayer_times_today(
:param time_zone: The time zone where you want prayer times
:return: Today's prayer times in dict format
"""
print("Getting today's times")
return _get_prayer_times(
juristic_method,
country=country,
Expand Down Expand Up @@ -171,7 +167,6 @@ def get_prayer_times_tomorrow(
:param time_zone: The time zone where you want prayer times
:return: Tomorrow's prayer times in dict format
"""
print("Getting tomorrows's times")
return _get_prayer_times(
juristic_method,
country=country,
Expand Down
13 changes: 0 additions & 13 deletions app/prayer_pane.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,10 @@ def get_prayer_times(self):
juristic_method = 0
if self.config_handler.get_setting(constants.CONFIG_USE_HANAFI_METHOD_KEY):
juristic_method = 1
print("Getting today's times through Futures")
todays_times_future = concurrent.futures.ThreadPoolExecutor().submit(
getter.get_prayer_times_today, juristic_method
)
self.todays_times = todays_times_future.result()
print("Getting tomorrow's times through Futures")
tomorrow_times_future = concurrent.futures.ThreadPoolExecutor().submit(
getter.get_prayer_times_tomorrow, juristic_method
)
Expand All @@ -89,18 +87,7 @@ def update(self, *args):
:param args: Args given by Kivy
:return: None
"""
print("Old today's times: ")
print(self.todays_times)
print("Old tomorrows's times: ")
print(self.tomorrow_times)
print("Getting prayer times first")
self.get_prayer_times()
print("Obtained prayer times")
print("New today's times: ")
print(self.todays_times)
print("New tomorrows's times: ")
print(self.tomorrow_times)
print("Updating widgets")
for prayer_time in ["Fajr", "Duha", "Dhuhr", "Asr", "Maghrib", "Isha"]:
self.prayer_time_widgets[prayer_time].update(
self.todays_times, self.tomorrow_times
Expand Down
8 changes: 0 additions & 8 deletions app/prayer_time_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,6 @@ def update(self, todays_times, tomorrow_times):
:param tomorrow_times: Tomorrow's prayer times in dict format
:return: None
"""
print("Current today times: ")
print(self.todays_times)
print("Current tomorrow times: ")
print(self.tomorrow_times)
print("New today times: ")
print(todays_times)
print("New tomorrow times: ")
print(tomorrow_times)
self.todays_times = todays_times
self.tomorrow_times = tomorrow_times
self.todays_time_widget.text = (
Expand Down

0 comments on commit 907f88d

Please sign in to comment.