Enums for states/conditions/etc #28
Answered
by
JOJ0
AnssiAhola
asked this question in
Ideas
-
Could be useful for preventing mistyping or is this best left for the clients user to implement? Example class Condition(Enum):
MINT = 'Mint (M)'
NEAR_MINT = 'Near Mint (NM or M-)'
... class State(Enum):
DRAFT = 'Draft'
FOR_SALE = 'For Sale' listing.state = State.DRAFT
listing.condition = Condition.NEAR_MINT |
Beta Was this translation helpful? Give feedback.
Answered by
JOJ0
Jan 27, 2021
Replies: 1 comment 3 replies
-
Does the discogs.com API itself accept anything to be put in these fields? Can I just write 'Mintest!!! (M)' and it will show as that in my inventory or won't a request like that be accepted by the API? I haven't ever tried to work with sales listings and stuff via the API yet (But soon will start using it trough discogs_client thanks to your PR's! :-)) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
AnssiAhola
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does the discogs.com API itself accept anything to be put in these fields? Can I just write 'Mintest!!! (M)' and it will show as that in my inventory or won't a request like that be accepted by the API? I haven't ever tried to work with sales listings and stuff via the API yet (But soon will start using it trough discogs_client thanks to your PR's! :-))