Skip to content

Commit

Permalink
chore: refactor world clock -> simple program
Browse files Browse the repository at this point in the history
  • Loading branch information
kom-senapati committed Jul 7, 2024
1 parent c018e79 commit a1ec2e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/apps/pages/programs/apiProgram.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

def apiPrograms():
st.title('API Programs')
choice = st.selectbox('Select a program to execute', [None, "Jokes", "General Facts", "Gemini ChatBot", "World Clock"])
choice = st.selectbox('Select a program to execute', [None, "Jokes", "General Facts", "Gemini ChatBot"])
st.markdown('---')
if choice == "Jokes":
from src.apps.pages.programs.ApiPrograms.joke import play_joke
Expand All @@ -13,9 +13,6 @@ def apiPrograms():
elif choice == "Gemini ChatBot":
from src.apps.pages.programs.ApiPrograms.genAIChatbot import chatBot
chatBot()
elif choice == "World Clock":
from src.apps.pages.programs.ApiPrograms.worldClock import display_world_clock
display_world_clock()
else:
st.info("Star this project on [GitHub](https://github.com/Avdhesh-Varshney/Jarvis), if you like it!", icon='⭐')

Expand Down
5 changes: 4 additions & 1 deletion src/apps/pages/programs/simpleProgram.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

def simplePrograms():
st.title('Simple Programs')
choice = st.selectbox('Select a program to execute', [None, 'Timer', 'Password Generator','Caeser Cipher'])
choice = st.selectbox('Select a program to execute', [None, 'Timer', 'Password Generator','Caeser Cipher', 'World Clock'])

st.markdown('---')

Expand All @@ -15,6 +15,9 @@ def simplePrograms():
elif choice == 'Caeser Cipher':
from src.apps.pages.programs.SimplePrograms.CaeserCipher import caeserCipher
caeserCipher()
elif choice == 'World Clock':
from src.apps.pages.programs.SimplePrograms.worldClock import display_world_clock
display_world_clock()
else:
st.info("Star this project on [GitHub](https://github.com/Avdhesh-Varshney/Jarvis), if you like it!", icon='⭐')

Expand Down

0 comments on commit a1ec2e3

Please sign in to comment.