Skip to content

Commit

Permalink
fix: enum
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Aug 9, 2023
1 parent 039ec0f commit 060db6c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pythonseer/types/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ class FormatType(Enum):
LIST = auto()
CSV = auto()

@classmethod
def get_query(cls, query_join=''):
if cls == cls.FULL:
def get_query(self, query_join=''):
print(self)
if self == FormatType.FULL:
return ""
elif cls == cls.LIST:
elif self == FormatType.LIST:
return f"{query_join}domains=true"
elif cls == cls.CSV:
elif self == FormatType.CSV:
return f"{query_join}csv=true"

0 comments on commit 060db6c

Please sign in to comment.