Skip to content

Commit 583304a

Browse files
Merge pull request #198 from ComputerScienceHouse/develop
Version 1.8.0
2 parents 3ec1055 + 2be4d79 commit 583304a

File tree

9 files changed

+18
-6
lines changed

9 files changed

+18
-6
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
2323
apt-get -yq remove nodejs npm && \
2424
apt-get -yq clean all
2525

26+
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
27+
2628
CMD ["gunicorn", "conditional:app", "--bind=0.0.0.0:8080", "--access-logfile=-"]

conditional/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.7.0"
1+
__version__ = "1.8.0"

conditional/blueprints/member_management.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from conditional.util.ldap import ldap_set_roomnumber
3535
from conditional.util.ldap import ldap_set_active
3636
from conditional.util.ldap import ldap_set_inactive
37+
from conditional.util.ldap import ldap_set_onfloor
3738
from conditional.util.ldap import ldap_set_housingpoints
3839
from conditional.util.ldap import ldap_set_current_student
3940
from conditional.util.ldap import ldap_set_non_current_student
@@ -494,11 +495,12 @@ def member_management_upgrade_user(user_dict=None):
494495
fhm.meeting_id))
495496
db.session.delete(fhm)
496497

498+
new_account = ldap_get_member(uid)
497499
if acct.onfloor_status:
498500
db.session.add(OnFloorStatusAssigned(uid, datetime.now()))
501+
ldap_set_onfloor(new_account)
499502

500503
if acct.room_number:
501-
new_account = ldap_get_member(uid)
502504
ldap_set_roomnumber(new_account, acct.room_number)
503505

504506
db.session.delete(acct)

conditional/templates/intro_eval_slideshow.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
{% for m in members %}
1313
<section id="slide-{{m['uid']}}">
1414
<section>
15+
<img class="eval-user-img" alt="{{m['uid']}}" src="https://profiles.csh.rit.edu/image/{{m['uid']}}" />
1516
<h1>{{m['name']}}</h1>
1617
<div class="row">
1718
<div class="col-xs-12 col-md-3">

conditional/templates/spring_eval_slideshow.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
{% for m in members %}
1313
<section id="slide-{{m['uid']}}">
1414
<section>
15+
<img class="eval-user-img" alt="{{m['uid']}}" src="https://profiles.csh.rit.edu/image/{{m['uid']}}" />
1516
<h1>{{m['name']}}</h1>
1617
<div class="row">
1718
<div class="col-xs-12 col-md-4">

conditional/util/ldap.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ def ldap_set_non_current_student(account):
133133
ldap_get_current_students.cache_clear()
134134
ldap_get_member.cache_clear()
135135

136+
def ldap_set_onfloor(account):
137+
_ldap_add_member_to_group(account, 'onfloor')
138+
ldap_get_onfloor_members.cache_clear()
139+
ldap_get_member.cache_clear()
136140

137141
def ldap_get_roomnumber(account):
138142
try:

frontend/stylesheets/components/reveal/_white.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@ body {
300300

301301
.reveal section img {
302302
margin: 15px 0;
303-
border: 4px solid #222;
303+
border: none;
304+
width: 100px;
305+
height: 100px;
304306
box-shadow: 0 0 10px rgba(0, 0, 0, .15);
305307
background: rgba(255, 255, 255, .12);
306308
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "conditional",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description": "CSH Re-evaluation (MEGA_EVALS RE:RE:LOADED)",
55
"license": "MIT",
66
"homepage": "http://csh.rit.edu/",

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ astroid==1.6.1
33
blinker==1.4
44
click==6.7
55
csh-ldap==2.0.2
6-
Flask==0.12.2
6+
Flask==1.0.2
77
Flask-Migrate==2.1.1
8-
Flask-pyoidc==1.2.0
8+
Flask-pyoidc==1.3.0
99
Flask-SQLAlchemy==2.3.2
1010
gunicorn==19.7.1
1111
isort==4.3.4

0 commit comments

Comments
 (0)