SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
SciPost
SciPost
Commits
a9f63b7a
Commit
a9f63b7a
authored
7 years ago
by
Jorran de Wit
Browse files
Options
Downloads
Patches
Plain Diff
Ithenticate try 8
parent
f326e0c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
submissions/forms.py
+15
-11
15 additions, 11 deletions
submissions/forms.py
with
15 additions
and
11 deletions
submissions/forms.py
+
15
−
11
View file @
a9f63b7a
...
@@ -679,17 +679,21 @@ class iThenticateReportForm(forms.ModelForm):
...
@@ -679,17 +679,21 @@ class iThenticateReportForm(forms.ModelForm):
def
save
(
self
,
*
args
,
**
kwargs
):
def
save
(
self
,
*
args
,
**
kwargs
):
data
=
self
.
response
[
'
data
'
][
0
]
data
=
self
.
response
[
'
data
'
][
0
]
report
,
__
=
iThenticateReport
.
objects
.
get_or_create
(
doc_id
=
data
[
'
id
'
])
report
,
created
=
iThenticateReport
.
objects
.
get_or_create
(
doc_id
=
data
[
'
id
'
])
try
:
if
not
created
:
report
.
uploaded_time
=
data
[
'
uploaded_time
'
]
try
:
report
.
processed_time
=
data
[
'
processed_time
'
]
iThenticateReport
.
objects
.
filter
(
doc_id
=
data
[
'
id
'
]).
update
(
report
.
percent_match
=
data
[
'
percent_match
'
]
uploaded_time
=
data
[
'
uploaded_time
'
],
except
KeyError
:
processed_time
=
data
[
'
processed_time
'
],
pass
percent_match
=
data
[
'
percent_match
'
]
report
.
save
()
)
self
.
submission
.
plagiarism_report
=
report
except
KeyError
:
self
.
submission
.
save
()
pass
else
:
report
.
save
()
self
.
submission
.
plagiarism_report
=
report
self
.
submission
.
save
()
return
report
return
report
def
call_ithenticate
(
self
):
def
call_ithenticate
(
self
):
...
...
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