Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
e33f8e99
Commit
e33f8e99
authored
4 years ago
by
vimal1083
Committed by
Fredrik Jonsson
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix lint issue
parent
cb19a679
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hypha/apply/api/v1/filters.py
+8
-8
8 additions, 8 deletions
hypha/apply/api/v1/filters.py
hypha/apply/api/v1/views.py
+7
-1
7 additions, 1 deletion
hypha/apply/api/v1/views.py
with
15 additions
and
9 deletions
hypha/apply/api/v1/filters.py
+
8
−
8
View file @
e33f8e99
...
...
@@ -48,14 +48,14 @@ class SubmissionsFilter(filters.FilterSet):
model
=
ApplicationSubmission
fields
=
(
'
status
'
,
'
round
'
,
'
active
'
,
'
submit_date
'
,
'
fund
'
,
'
screening_statuses
'
,
'
reviewers
'
,
'
lead
'
)
def
filter_active
(
self
,
qs
,
name
,
value
):
if
value
is
None
:
return
qs
if
value
:
return
qs
.
active
()
else
:
return
qs
.
inactive
()
def
filter_active
(
self
,
qs
,
name
,
value
):
if
value
is
None
:
return
qs
if
value
:
return
qs
.
active
()
else
:
return
qs
.
inactive
()
class
NewerThanFilter
(
filters
.
ModelChoiceFilter
):
...
...
This diff is collapsed.
Click to expand it.
hypha/apply/api/v1/views.py
+
7
−
1
View file @
e33f8e99
...
...
@@ -14,7 +14,13 @@ from hypha.apply.activity.messaging import MESSAGES, messenger
from
hypha.apply.activity.models
import
COMMENT
,
Activity
from
hypha.apply.determinations.views
import
DeterminationCreateOrUpdateView
from
hypha.apply.funds.models
import
ApplicationSubmission
,
RoundsAndLabs
from
hypha.apply.funds.tables
import
get_reviewers
,
get_round_leads
,
get_screening_statuses
,
get_used_rounds
,
get_used_funds
from
hypha.apply.funds.tables
import
(
get_reviewers
,
get_round_leads
,
get_screening_statuses
,
get_used_funds
,
get_used_rounds
,
)
from
hypha.apply.funds.workflow
import
STATUSES
from
hypha.apply.review.models
import
Review
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment