Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Oct 8, 2023
1 parent 6f96fcd commit 91d2eec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/models/redis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def add_to_queue(
is_playing: bool,
date: str,
file: str,
type: str,
type_of: str,
position=1,
) -> bool:
"""Add or create queue in `group_id` field"""
Expand All @@ -19,7 +19,7 @@ def add_to_queue(
"position": position,
"date": date,
"file": file,
"type": type,
"type_of": type_of,
}
]
queue = r.hgetall("queues")
Expand Down Expand Up @@ -49,7 +49,7 @@ def next_in_queue(group_id: str) -> Union[Tuple, None]:
next["position"],
next["date"],
next["file"],
next["type"],
next["type_of"],
)
return values
return None
Expand All @@ -69,7 +69,7 @@ def previous_in_queue(group_id: str) -> Union[Tuple, None]:
previous["position"],
previous["date"],
previous["file"],
previous["type"],
previous["type_of"],
)
return values
return None
Expand Down

0 comments on commit 91d2eec

Please sign in to comment.