Skip to content

Commit

Permalink
Remove erroneous ===
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Lee authored and Joel Lee committed Apr 1, 2021
1 parent 08f395d commit 23b944b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ license = "MIT"
[tool.poetry.dependencies]
python = "^3.7.1"
postgrest-py = "^0.3.2"
realtime-py="^0.1.0"
realtime-py="^0.1.2"
gotrue="0.1.2"
pytest="6.2.2"
supabase-realtime-py="0.1.1a0"

[tool.poetry.dev-dependencies]

Expand Down
4 changes: 2 additions & 2 deletions supabase_py/lib/realtime_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


class SupabaseRealtimeClient:
def __init__(self, socket: Type[Socket], schema: str, table_name: str):
def __init__(self, socket: Socket, schema: str, table_name: str):
topic = (
f"realtime:{schema}"
if table_name == "*"
Expand All @@ -18,7 +18,7 @@ def get_payload_records(self, payload: Any):
if payload.type == "INSERT" or payload.type == "UPDATE":
records.new = payload.record
convert_change_data(payload.columns, payload.record)
if (payload.type === 'UPDATE' or payload.type === 'DELETE'):
if (payload.type == 'UPDATE' or payload.type == 'DELETE'):
records.old = payload.record
convert_change_data(payload.columns, payload.old_record)
return records
Expand Down

0 comments on commit 23b944b

Please sign in to comment.