Skip to content
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

Reworking project to support Python 3 #72

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Reworking project to support Python 3 #72

wants to merge 16 commits into from

Conversation

l13t
Copy link
Owner

@l13t l13t commented Jan 4, 2022

Preparing version 0.3.0

  • Changed graph engine to Plotly
  • Added functions that generate JSON for Plotly
  • Changed way how application information is stored and used in templates
  • Added healthcheck and environment information endpoints
  • Switched from ORM requests to direct queries
  • Changed internal libraries structure
  • Added debug option and environment variables
  • Fixed missing imports

l13t and others added 16 commits October 20, 2020 01:19
* changed structure for libraries and code
* rewrote queries without ORM
* reworked config file
* added debug options for current development steps
* changed graph engine to Plotly
* added functions that generate JSON for Plotly
* changed way how application information is stored and used in
  templates
* added healthcheck and environment information endpoints
* removed included javascript that is not used
* fixed tabs in old volumes report
WHERE
client.clientid = job.clientid AND job.name = '{}' AND job.schedtime = '{}'
""".format(host_name, bdate)
_short_res = db.execute(query).fetchall()

Check failure

Code scanning / CodeQL

SQL query built from user-controlled sources

This SQL query depends on [a user-provided value](1). This SQL query depends on [a user-provided value](2).
WHERE
job.name = '{}' AND job.jobid = file.jobid AND job.schedtime = '{}' AND filename.filenameid = file.filenameid AND path.pathid = file.pathid
""".format(host_name, bdate)
f_res = db.execute(f_sel).fetchall()

Check failure

Code scanning / CodeQL

SQL query built from user-controlled sources

This SQL query depends on [a user-provided value](1). This SQL query depends on [a user-provided value](2).
m.volumename = '""" + media + """';
"""

_media_info_result = db.execute(media_info_query).fetchone()

Check failure

Code scanning / CodeQL

SQL query built from user-controlled sources

This SQL query depends on [a user-provided value](1).
m.volumename;
"""

job_inside_media_result = db.execute(job_inside_media_query).fetchall()

Check failure

Code scanning / CodeQL

SQL query built from user-controlled sources

This SQL query depends on [a user-provided value](1).
if fname == 'index':
return redirect("/", code=302)
else:
fi = open(custom_path + fname + ".html", 'r')

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression

This path depends on [a user-provided value](1).
client.clientid = jh.clientid AND jh.schedtime > NOW() - INTERVAL '14 days' AND jh.name = '{}'
ORDER BY schedtime
""".format(host_name, host_name)
result = db.execute(query).fetchall()

Check failure

Code scanning / CodeQL

SQL query built from user-controlled sources

This SQL query depends on [a user-provided value](1).
GROUP BY
pool.name, job.schedtime
""".format(bddate, bddate)
bd = db.execute(query).fetchall()

Check failure

Code scanning / CodeQL

SQL query built from user-controlled sources

This SQL query depends on [a user-provided value](1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant