mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-15 19:05:09 +01:00
Timestamp fix
This commit is contained in:
parent
99d755ddb3
commit
8d8739a694
5 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@ from time import time_ns
|
||||||
from playwright.sync_api import Playwright, sync_playwright
|
from playwright.sync_api import Playwright, sync_playwright
|
||||||
|
|
||||||
def log_note(message: str) -> None:
|
def log_note(message: str) -> None:
|
||||||
timestamp = round(time_ns() * 1000)
|
timestamp = str(time_ns())[:16]
|
||||||
print(f"{timestamp} {message}")
|
print(f"{timestamp} {message}")
|
||||||
|
|
||||||
def run(playwright: Playwright) -> None:
|
def run(playwright: Playwright) -> None:
|
||||||
|
|
|
@ -4,7 +4,7 @@ from time import time_ns
|
||||||
from playwright.sync_api import Playwright, sync_playwright
|
from playwright.sync_api import Playwright, sync_playwright
|
||||||
|
|
||||||
def log_note(message: str) -> None:
|
def log_note(message: str) -> None:
|
||||||
timestamp = round(time_ns() * 1000)
|
timestamp = str(time_ns())[:16]
|
||||||
print(f"{timestamp} {message}")
|
print(f"{timestamp} {message}")
|
||||||
|
|
||||||
def create_user(playwright: Playwright, username: str, password: str) -> None:
|
def create_user(playwright: Playwright, username: str, password: str) -> None:
|
||||||
|
|
|
@ -11,7 +11,7 @@ def get_random_text() -> str:
|
||||||
return ''.join(random.choice(characters) for _ in range(size_in_bytes))
|
return ''.join(random.choice(characters) for _ in range(size_in_bytes))
|
||||||
|
|
||||||
def log_note(message: str) -> None:
|
def log_note(message: str) -> None:
|
||||||
timestamp = round(time_ns() * 1000)
|
timestamp = str(time_ns())[:16]
|
||||||
print(f"{timestamp} {message}")
|
print(f"{timestamp} {message}")
|
||||||
|
|
||||||
def collaborate(playwright: Playwright) -> None:
|
def collaborate(playwright: Playwright) -> None:
|
||||||
|
|
|
@ -3,7 +3,7 @@ from time import time_ns
|
||||||
from playwright.sync_api import sync_playwright
|
from playwright.sync_api import sync_playwright
|
||||||
|
|
||||||
def log_note(message: str) -> None:
|
def log_note(message: str) -> None:
|
||||||
timestamp = round(time_ns() * 1000)
|
timestamp = str(time_ns())[:16]
|
||||||
print(f"{timestamp} {message}")
|
print(f"{timestamp} {message}")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -5,7 +5,7 @@ from time import time_ns
|
||||||
from playwright.sync_api import Playwright, sync_playwright, expect
|
from playwright.sync_api import Playwright, sync_playwright, expect
|
||||||
|
|
||||||
def log_note(message: str) -> None:
|
def log_note(message: str) -> None:
|
||||||
timestamp = round(time_ns() * 1000)
|
timestamp = str(time_ns())[:16]
|
||||||
print(f"{timestamp} {message}")
|
print(f"{timestamp} {message}")
|
||||||
|
|
||||||
def get_random_text() -> str:
|
def get_random_text() -> str:
|
||||||
|
|
Loading…
Add table
Reference in a new issue