mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-08-28 05:44:06 +02:00
Seprate firmware related functions
Code cleanup Allow deletiong of firmwares
This commit is contained in:
parent
30d60a72ad
commit
bee8869789
7 changed files with 401 additions and 357 deletions
|
@ -33,7 +33,6 @@ def install_package(package):
|
|||
|
||||
|
||||
def set_get_install_date():
|
||||
|
||||
install_date=False
|
||||
try:
|
||||
install_date=db_sysconfig.get_sysconfig('install_date')
|
||||
|
@ -43,7 +42,6 @@ def set_get_install_date():
|
|||
install_date=datetime.datetime.now()
|
||||
db_sysconfig.set_sysconfig('install_date',install_date.strftime("%Y-%m-%d %H:%M:%S"))
|
||||
install_date=install_date.strftime("%Y-%m-%d %H:%M:%S")
|
||||
|
||||
return install_date
|
||||
|
||||
# Example usage
|
||||
|
@ -124,8 +122,6 @@ def main():
|
|||
username = db_sysconfig.get_sysconfig('username')
|
||||
except:
|
||||
log.error("No username found")
|
||||
time.sleep(300)
|
||||
continue
|
||||
# util.send_mikrowizard_request(params)
|
||||
if not username or username.strip()=="":
|
||||
log.error("No username found")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue