mirror of
https://github.com/KevinMidboe/termForecast.git
synced 2025-10-29 01:40:18 +00:00
Merge pull request #4 from KevinMidboe/emojiPrinter
Changed the emoji parser from printing the entire list, but use the i…
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# @Author: KevinMidboe
|
||||
# @Date: 2017-07-29 11:56:24
|
||||
# @Last Modified by: KevinMidboe
|
||||
# @Last Modified time: 2017-07-30 13:17:19
|
||||
# @Last Modified time: 2017-08-05 16:32:44
|
||||
|
||||
from fuzzywuzzy import process
|
||||
|
||||
@@ -124,7 +124,7 @@ class EmojiParser(object):
|
||||
forecast_emoji = self.emojify(forecast)
|
||||
|
||||
if forecast in severity:
|
||||
return ('%s %s' % (forecast_emoji, severity[forecast]))
|
||||
return ('%s %s' % (forecast_emoji, severity[forecast][self.severity]))
|
||||
else:
|
||||
return forecast_emoji
|
||||
|
||||
|
||||
4
term_forecast/term_weather.py
Normal file → Executable file
4
term_forecast/term_weather.py
Normal file → Executable file
@@ -3,7 +3,7 @@
|
||||
# @Author: KevinMidboe
|
||||
# @Date: 2017-07-27 21:26:53
|
||||
# @Last Modified by: KevinMidboe
|
||||
# @Last Modified time: 2017-07-30 19:56:18
|
||||
# @Last Modified time: 2017-08-05 16:30:31
|
||||
|
||||
# TODO LIST
|
||||
# Get coordinates from IP ✔
|
||||
@@ -108,7 +108,7 @@ class WeatherForecast(object):
|
||||
|
||||
class TermWeather(object):
|
||||
def __init__(self):
|
||||
print('here')
|
||||
pass
|
||||
|
||||
# Add now, forecast as args
|
||||
def auto(self):
|
||||
|
||||
Reference in New Issue
Block a user