From 1595e0de940a86a7810df0e02e43838d97c0d846 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 6 Jun 2020 17:44:26 +0200 Subject: Provide nix build --- src/model/status.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/model/status.py (limited to 'src/model/status.py') diff --git a/src/model/status.py b/src/model/status.py deleted file mode 100644 index 6881e0a..0000000 --- a/src/model/status.py +++ /dev/null @@ -1,30 +0,0 @@ -from enum import IntEnum -from typing import Optional - -class Status(IntEnum): - READY = 0 - WAITING = 1 - MAYBE = 2 - -values = [ - Status.READY, - Status.WAITING, - Status.MAYBE] - -def format(status: Status) -> str: - if status == Status.READY: - return "Ready" - elif status == Status.WAITING: - return "Waiting" - elif status == Status.MAYBE: - return "Maybe" - -def parse(string: str) -> Optional[Status]: - if string == "Ready": - return Status.READY - elif string == "Waiting": - return Status.WAITING - elif string == "Maybe": - return Status.MAYBE - else: - return None -- cgit v1.2.3