Skip to content

Commit 780ad94

Browse files
guibescosthmzlt
authored andcommitted
guibescos/add-permission-account
1 parent 160187d commit 780ad94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

program_admin/parsing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
ACCOUNT_TYPE_PRODUCT = 2
3434
ACCOUNT_TYPE_PRICE = 3
3535
ACCOUNT_TYPE_TEST = 4
36+
ACCOUNT_TYPE_PERMISSION = 5
3637

3738

3839
def parse_mapping_data(data: bytes) -> MappingData:
@@ -169,7 +170,7 @@ def parse_data(data: bytes) -> Optional[AccountData]:
169170
return parse_product_data(data)
170171
if data_type == ACCOUNT_TYPE_PRICE:
171172
return parse_price_data(data)
172-
if data_type == ACCOUNT_TYPE_TEST:
173+
if data_type in (ACCOUNT_TYPE_TEST, ACCOUNT_TYPE_PERMISSION):
173174
return None
174175

175176
raise RuntimeError(f"Invalid account type: {data_type}")

0 commit comments

Comments
 (0)