Skip to content
Snippets Groups Projects
Commit 041ecb49 authored by Jan Mach's avatar Jan Mach
Browse files

Fix: Fixed minor PyLint warnings.

(Redmine issue: #3443)
parent 0be8b86f
No related branches found
No related tags found
No related merge requests found
......@@ -595,7 +595,7 @@ class SettingsReportingModel(MODEL): # pylint: disable=locally-disabled,too-few
max_attachment_size = sqlalchemy.Column(sqlalchemy.Integer)
def __repr__(self):
return "<SettingsReporting(id='%d',group_id='%d')>" % (self.id, self.group_id)
return "<SettingsReporting(id='%d',group_id='%d')>" % (int(self.id), int(self.group_id))
def to_dict(self):
"""
......@@ -896,7 +896,7 @@ def jsondiff(json_obj_a, json_obj_b):
Calculate the difference between two model objects given as JSON strings.
"""
return "\n".join(
[l for l in difflib.unified_diff(json_obj_a.split("\n"), json_obj_b.split("\n"))]
difflib.unified_diff(json_obj_a.split("\n"), json_obj_b.split("\n"))
)
def dictdiff(dict_obj_a, dict_obj_b):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment