

from splash import showSplash

from functions import quit, getServiceFromUser, getPasswordFromUser, writeToFile

def main():
    while True:
        service = getServiceFromUser()
        pw = getPasswordFromUser()
        writeToFile(service, pw)



# run the program
showSplash()
main()




import hashlib

from splash import showSplash

from functions import quit, getServiceFromUser, getPasswordFromUser, \
    getUserInput, handleLogin, welcomeMessage, showMenu

from database import addUser, getAllServices, checkIfServiceExists, \
    addService, removeService, updateService, getServiceByName

def main():
    welcomeMessage()
    handleLogin()


    while True:
        showMenu()



# run the program
#showSplash()
main()


Clean up main a bit
Clean up main a bit


  
+ 
+ import hashlib
  
  from splash import showSplash
  
- from functions import quit, getServiceFromUser, getPasswordFromUser, writeToFile
+ from functions import quit, getServiceFromUser, getPasswordFromUser, \
+     getUserInput, handleLogin, welcomeMessage, showMenu
+ 
+ from database import addUser, getAllServices, checkIfServiceExists, \
+     addService, removeService, updateService, getServiceByName
  
  def main():
+     welcomeMessage()
+     handleLogin()
+ 
+ 
      while True:
+         showMenu()
-         service = getServiceFromUser()
-         pw = getPasswordFromUser()
-         writeToFile(service, pw)
  
  
  
  # run the program
- showSplash()
+ #showSplash()
  main()
  
  
Clean up main a bit
## Code Before:


from splash import showSplash

from functions import quit, getServiceFromUser, getPasswordFromUser, writeToFile

def main():
    while True:
        service = getServiceFromUser()
        pw = getPasswordFromUser()
        writeToFile(service, pw)



# run the program
showSplash()
main()


## Instruction:
Clean up main a bit
## Code After:


import hashlib

from splash import showSplash

from functions import quit, getServiceFromUser, getPasswordFromUser, \
    getUserInput, handleLogin, welcomeMessage, showMenu

from database import addUser, getAllServices, checkIfServiceExists, \
    addService, removeService, updateService, getServiceByName

def main():
    welcomeMessage()
    handleLogin()


    while True:
        showMenu()



# run the program
#showSplash()
main()

