Упрощение даты
This commit is contained in:
parent
8adb27e8d1
commit
d66ca147e4
1 changed files with 2 additions and 2 deletions
|
|
@ -190,7 +190,7 @@ class SubnetService:
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
devices = []
|
devices = []
|
||||||
now = datetime.now().astimezone()
|
now = datetime.now().astimezone()
|
||||||
formatted_now = now.strftime("%d %B %Y, %H:%M")
|
formatted_now = now.strftime("%d-%m-%Y, %H:%M")
|
||||||
try:
|
try:
|
||||||
saved_devices = self.storage.load_devices()
|
saved_devices = self.storage.load_devices()
|
||||||
|
|
||||||
|
|
@ -267,7 +267,7 @@ class SubnetService:
|
||||||
|
|
||||||
def _get_local_device(self, subnet: str) -> Optional[Device]:
|
def _get_local_device(self, subnet: str) -> Optional[Device]:
|
||||||
now = datetime.now().astimezone()
|
now = datetime.now().astimezone()
|
||||||
formatted_now = now.strftime("%d %B %Y, %H:%M")
|
formatted_now = now.strftime("%d-%m-%Y, %H:%M")
|
||||||
try:
|
try:
|
||||||
subnet_network = ipaddress.ip_network(subnet, strict=False)
|
subnet_network = ipaddress.ip_network(subnet, strict=False)
|
||||||
interfaces = netifaces.interfaces()
|
interfaces = netifaces.interfaces()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue