mirror of
https://github.com/KevinMidboe/termForecast.git
synced 2025-10-29 09:50: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
|
# @Author: KevinMidboe
|
||||||
# @Date: 2017-07-29 11:56:24
|
# @Date: 2017-07-29 11:56:24
|
||||||
# @Last Modified by: KevinMidboe
|
# @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
|
from fuzzywuzzy import process
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ class EmojiParser(object):
|
|||||||
forecast_emoji = self.emojify(forecast)
|
forecast_emoji = self.emojify(forecast)
|
||||||
|
|
||||||
if forecast in severity:
|
if forecast in severity:
|
||||||
return ('%s %s' % (forecast_emoji, severity[forecast]))
|
return ('%s %s' % (forecast_emoji, severity[forecast][self.severity]))
|
||||||
else:
|
else:
|
||||||
return forecast_emoji
|
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
|
# @Author: KevinMidboe
|
||||||
# @Date: 2017-07-27 21:26:53
|
# @Date: 2017-07-27 21:26:53
|
||||||
# @Last Modified by: KevinMidboe
|
# @Last Modified by: KevinMidboe
|
||||||
# @Last Modified time: 2017-07-30 19:56:18
|
# @Last Modified time: 2017-08-05 16:30:31
|
||||||
|
|
||||||
# TODO LIST
|
# TODO LIST
|
||||||
# Get coordinates from IP ✔
|
# Get coordinates from IP ✔
|
||||||
@@ -108,7 +108,7 @@ class WeatherForecast(object):
|
|||||||
|
|
||||||
class TermWeather(object):
|
class TermWeather(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
print('here')
|
pass
|
||||||
|
|
||||||
# Add now, forecast as args
|
# Add now, forecast as args
|
||||||
def auto(self):
|
def auto(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user