-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
93465 #1185
Merged
Merged
93465 #1185
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[flake8] | ||
ignore = E203, E266, E501, W503, F403, F401, E231 | ||
ignore = E203, E266, E501, W503, F403, F401, E231, W503 | ||
max-line-length = 79 | ||
max-complexity = 18 | ||
select = B,C,E,F,W,T4,B9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ class Debriefing(TaskModelEventEmitter): | |
VIOLATION_SCHEDULE_CONVERSATION = "SCHEDULE_CONVERSATION" | ||
VIOLATION_ADVICE_OTHER_DISCIPLINE = "ADVICE_OTHER_DISCIPLINE" | ||
VIOLATION_REQUEST_DOCUMENTS = "REQUEST_DOCUMENTS" | ||
VIOLATION_SEND_TO_WOON = "SEND_TO_WOON" | ||
VIOLATION_SEND_TO_ANOTHER_EXTERNAL_PARTY = "SEND_TO_ANOTHER_EXTERNAL_PARTY" | ||
|
||
VIOLATION_CHOICES = [ | ||
(VIOLATION_NO, "Geen overtreding"), | ||
|
@@ -36,6 +38,11 @@ class Debriefing(TaskModelEventEmitter): | |
(VIOLATION_SCHEDULE_CONVERSATION, "Inplannen gesprek"), | ||
(VIOLATION_ADVICE_OTHER_DISCIPLINE, "Afwachten advies andere discipline"), | ||
(VIOLATION_REQUEST_DOCUMENTS, "Opvragen stukken"), | ||
(VIOLATION_SEND_TO_WOON, "Doorsturen naar !Woon"), | ||
( | ||
VIOLATION_SEND_TO_ANOTHER_EXTERNAL_PARTY, | ||
"Doorsturen naar andere externe partij", | ||
), | ||
] | ||
|
||
case = models.ForeignKey( | ||
|
@@ -77,6 +84,7 @@ def __get_event_values__(self): | |
|
||
def get_violation_choices_by_theme(theme_id): | ||
if theme_id == 5: | ||
# 5 = Leegstand | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Zonder kennis van de applicatie is dit een beetje een gokje |
||
# VIOLATION_LIKELY_INHABITED is only accessible to Leegstand. | ||
return [ | ||
vc | ||
|
@@ -85,10 +93,14 @@ def get_violation_choices_by_theme(theme_id): | |
and vc[0] != Debriefing.VIOLATION_SCHEDULE_CONVERSATION | ||
and vc[0] != Debriefing.VIOLATION_ADVICE_OTHER_DISCIPLINE | ||
and vc[0] != Debriefing.VIOLATION_REQUEST_DOCUMENTS | ||
and vc[0] != Debriefing.VIOLATION_SEND_TO_WOON | ||
and vc[0] != Debriefing.VIOLATION_SEND_TO_ANOTHER_EXTERNAL_PARTY | ||
] | ||
elif theme_id == 8: | ||
# Goed verhuurderschap | ||
# SERVICE_COSTS, SCHEDULE_CONVERSATION, VIOLATION_ADVICE_OTHER_DISCIPLINE, | ||
# VIOLATION_REQUEST_DOCUMENTS are only accessible to Goed verhuurderschap. | ||
# VIOLATION_REQUEST_DOCUMENTS, VIOLATION_SEND_TO_WOON and VIOLATION_SEND_TO_ANOTHER_EXTERNAL_PARTY | ||
# are only accessible to Goed verhuurderschap. | ||
return [ | ||
vc | ||
for vc in Debriefing.VIOLATION_CHOICES | ||
|
@@ -105,4 +117,6 @@ def get_violation_choices_by_theme(theme_id): | |
and vc[0] != Debriefing.VIOLATION_SCHEDULE_CONVERSATION | ||
and vc[0] != Debriefing.VIOLATION_ADVICE_OTHER_DISCIPLINE | ||
and vc[0] != Debriefing.VIOLATION_REQUEST_DOCUMENTS | ||
and vc[0] != Debriefing.VIOLATION_SEND_TO_WOON | ||
and vc[0] != Debriefing.VIOLATION_SEND_TO_ANOTHER_EXTERNAL_PARTY | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is dit een workaround voor een bug oid? Er staat nu 2x
W503
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scherp!!