Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
323ce35
simple clean up
onlyphantom Apr 9, 2019
ef2d4d4
first phase of caching
onlyphantom Apr 15, 2019
ddbb123
Merge pull request #25 from onlyphantom/caching
onlyphantom Apr 15, 2019
101b490
update to jinja 2.10.1 / vulnerability patch
onlyphantom Apr 15, 2019
04561ab
Merge pull request #26 from onlyphantom/caching
onlyphantom Apr 15, 2019
c7cb7f1
inexpensive homepage
onlyphantom Apr 16, 2019
5731cb3
Merge pull request #27 from onlyphantom/caching
onlyphantom Apr 16, 2019
869bf9e
code refactoring on accomplishment page
onlyphantom Apr 17, 2019
4c5c6ac
more human-friendly names in leaderboard #14
onlyphantom Apr 17, 2019
bf4bcf9
Merge pull request #29 from onlyphantom/caching
onlyphantom Apr 17, 2019
f54e335
refactoring #28
onlyphantom Apr 18, 2019
b42339a
Merge pull request #32 from onlyphantom/caching
onlyphantom Apr 18, 2019
b1e09e2
implemented caching #22
onlyphantom Apr 18, 2019
d31641b
Merge pull request #33 from onlyphantom/caching
onlyphantom Apr 18, 2019
6afc635
update dependencies file
onlyphantom Apr 19, 2019
7637261
README and config cleanup
onlyphantom Apr 20, 2019
90162f8
extended admin privileges for backend portal
onlyphantom Apr 20, 2019
c0d44d4
Merge pull request #34 from onlyphantom/veteran
onlyphantom Apr 20, 2019
26f713c
team analytics page sleleton
onlyphantom Apr 21, 2019
6bfde56
Merge pull request #35 from onlyphantom/veteran
onlyphantom Apr 21, 2019
27ff662
added team analytics table
onlyphantom Apr 22, 2019
00abd90
fixed caching
onlyphantom Apr 23, 2019
cf72746
Merge pull request #36 from onlyphantom/veteran
onlyphantom Apr 23, 2019
a649c3a
improved recommendation section
onlyphantom Apr 23, 2019
331e217
added feature for #7 and fixed #37
onlyphantom Apr 24, 2019
5b0e2be
Merge pull request #38 from onlyphantom/veteran
onlyphantom Apr 24, 2019
262f62d
change config setup for modularity
onlyphantom Apr 25, 2019
64cba88
1 less env variables; constructed through string formatting
onlyphantom May 1, 2019
70c97ab
reset cache timeout and use fstring
onlyphantom May 2, 2019
36cf0ea
Bump werkzeug from 0.14.1 to 0.15.3
dependabot[bot] Nov 2, 2019
42c6bb1
Merge pull request #45 from onlyphantom/dependabot/pip/werkzeug-0.15.3
onlyphantom Nov 5, 2019
6401943
logo and homepage improvements
onlyphantom Nov 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Background
Pedagogy is a performance management tool for education professionals. It is developed within Algoritma, a data science education center.
Pedagogy is a performance management tool for education professionals. It is developed within Algoritma, a data science education center.

## Main Features

![](blurb.png)

At its current release (v0.1), Pedagogy delivers key performance indicators and assembly-wide analytics to its employees and training roster. The initial release includes three main modules:
At its current release (v0.4), Pedagogy delivers key performance indicators and assembly-wide analytics to its employees and training roster. The initial release includes three main modules:
- Company-wide statistics
- Number of students
- Number of workshop hours
Expand All @@ -31,3 +31,13 @@ At its current release (v0.1), Pedagogy delivers key performance indicators and
## Deployment

Pedagogy is deployed on Azure and can be accessed on http://pedagogy.azurewebsites.net

## Feature Requests and Contribution

The project is under active development and we welcome any contribution. Feel free to open issues on any feature request.

If you wish to contribute, we need:
- Getting Started Documentation: A getting started guide to help developers clone and run a local copy of Pedagogy on their machine
- Deployment Guide: A guide on deploying a copy of Pedagogy on all major cloud infrastructure (Azure, AWS, Heroku)

Feel free to submit pull request!
Binary file modified __pycache__/config.cpython-36.pyc
Binary file not shown.
3 changes: 2 additions & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Flask
from flask_caching import Cache
from flask_admin import Admin
from flask_admin.contrib.sqla import ModelView
from flask_mail import Mail
Expand All @@ -17,11 +18,11 @@
login = LoginManager(app)
admin = Admin(app, name='pedagogy')
mail = Mail(app)
cache = Cache(app)

# let Flask-Login know which page (function name) handles login
login.login_view = 'login'

# mailing configuration
if not app.debug:
if app.config['MAIL_SERVER']:
auth = None
Expand Down
6 changes: 3 additions & 3 deletions app/adminconf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from flask import redirect, url_for, request
from app import admin, db
from app import app, admin, db
from app.models import Employee, Workshop, Response
from app.users import User
from flask_admin import BaseView, expose
Expand All @@ -13,7 +13,7 @@ class AdminModelView(ModelView):

def is_accessible(self):
return (current_user.is_authenticated and
current_user.email == '[email protected]')
current_user.email in app.config['ADMINS'])
def inaccessible_callback(self, name, **kwargs):
# redirect to login page if user doesn't have access
return redirect(url_for('login', next=request.url))
Expand Down Expand Up @@ -48,7 +48,7 @@ def inaccessible_callback(self, name, **kwargs):
class ResponseView(ModelView):
def is_accessible(self):
return (current_user.is_authenticated and
current_user.email == '[email protected]')
current_user.email in app.config['ADMINS'])

def inaccessible_callback(self, name, **kwargs):
# redirect to login page if user doesn't have access
Expand Down
Loading