Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikonooooo committed Oct 25, 2023
1 parent 58a0ef4 commit a8582ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Enable AWS connection by pasting the .env file into the repo.

Start the server backend by running
```
uvicorn src.api/.backend:app --reload
uvicorn src.api.backend:app --reload
```

Open a new bash terminal and start the frontend by running
Expand Down
6 changes: 3 additions & 3 deletions src/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def __init__(self, xmin: int, ymin: int, xmax: int, ymax: int) -> None:
def check(self) -> bool:
"verifies if well-defined"
try:
assert self.box.check() is True
assert self.box.check() == True
assert self.playerid is not None and self.type is not None
except:
return False
Expand Down Expand Up @@ -217,7 +217,7 @@ def __init__(self, xmin: int, ymin: int, xmax: int, ymax: int) -> None:
def check(self) -> bool:
"verifies if well-defined"
try:
assert self.box.check() is True
assert self.box.check() == True
assert self.type is not None
if self.type is ActionType.NOTHING:
assert self.ballid == -1
Expand Down Expand Up @@ -459,7 +459,7 @@ def join_poss(self, lst: list, threshold: int = 20): # possiblility of mapreduc
p1: Interval = lst[i]
p2: Interval = lst[i + 1]

if p1.playerid is p2.playerid and p2.start - p1.end <= threshold:
if p1.playerid == p2.playerid and p2.start - p1.end <= threshold:
lst.pop(i)
lst.pop(i)
p = Interval(p1.playerid, p1.start, p2.end)
Expand Down

0 comments on commit a8582ee

Please sign in to comment.