From f543eea7e568e6a695661257c01af4fa32e1953a Mon Sep 17 00:00:00 2001 From: rune Date: Wed, 22 Mar 2023 12:28:14 +0100 Subject: [PATCH] Small fixes --- ddns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ddns.py b/ddns.py index 48a84fe..978ae97 100755 --- a/ddns.py +++ b/ddns.py @@ -234,7 +234,7 @@ def list_sub_domains(domain): print("[red]Error: [/red]No such domain. Check spelling or use ddns -d to show all top domains.") else: print('\n\nCurrent sub domains for [b]%s[/b]' % (domain)) - print('=====================================================================') + print('===============================================================================================') cursor.execute('SELECT id FROM domains WHERE name LIKE ?', (domain,)) topdomain_id = cursor.fetchone()[0] cursor.execute('SELECT COUNT(*) FROM subdomains WHERE main_id LIKE ?',(topdomain_id,)) @@ -242,12 +242,12 @@ def list_sub_domains(domain): if count == 0: print('[red]Error:[/red] No sub domains for [b]%s[/b]' % (domain)) else: - cursor.execute('SELECT name,last_updated FROM subdomains WHERE main_id LIKE ?',(topdomain_id,) ) + cursor.execute('SELECT name,last_updated,last_checked FROM subdomains WHERE main_id LIKE ?',(topdomain_id,) ) subdomains = cursor.fetchall() for i in subdomains: topdomain = i[0]+'.'+domain topdomain = "{:<25}".format(topdomain) - print(topdomain+'\tLast updated : '+i[1]) + print(topdomain+'\tUpdated : '+i[1]+'\tChecked : '+i[2]) print('\n')