Merge branch 'develop' of bitbucket.org:sanderroosendaal/rowsandall into develop
This commit is contained in:
@@ -1345,6 +1345,9 @@ def new_workout_from_file(r, f2,
|
|||||||
r.user.email)
|
r.user.email)
|
||||||
|
|
||||||
return (0, message, f2)
|
return (0, message, f2)
|
||||||
|
if fileformat == 'att':
|
||||||
|
# email attachment which can safely be ignored
|
||||||
|
return (0, '', f2)
|
||||||
|
|
||||||
# handle non-Painsled by converting it to painsled compatible CSV
|
# handle non-Painsled by converting it to painsled compatible CSV
|
||||||
if (fileformat != 'csv'):
|
if (fileformat != 'csv'):
|
||||||
|
|||||||
@@ -137,6 +137,8 @@ def make_new_workout_from_email(rower, datafile, name, cntr=0,testing=False):
|
|||||||
|
|
||||||
|
|
||||||
# handle non-Painsled
|
# handle non-Painsled
|
||||||
|
if fileformat == 'att':
|
||||||
|
return 0
|
||||||
if fileformat != 'csv':
|
if fileformat != 'csv':
|
||||||
filename_mediadir, summary, oarlength, inboard,fileformat = dataprep.handle_nonpainsled(
|
filename_mediadir, summary, oarlength, inboard,fileformat = dataprep.handle_nonpainsled(
|
||||||
'media/' + datafilename, fileformat, summary)
|
'media/' + datafilename, fileformat, summary)
|
||||||
|
|||||||
@@ -1026,7 +1026,7 @@ def handle_sendemail_breakthrough(workoutid, useremail,
|
|||||||
d = {
|
d = {
|
||||||
'first_name':userfirstname,
|
'first_name':userfirstname,
|
||||||
'siteurl':siteurl,
|
'siteurl':siteurl,
|
||||||
'workoutid':workoutid,
|
'workoutid':encoder.encode_hex(workoutid),
|
||||||
'btvalues':tablevalues,
|
'btvalues':tablevalues,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1071,7 +1071,7 @@ def handle_sendemail_hard(workoutid, useremail,
|
|||||||
d = {
|
d = {
|
||||||
'first_name':userfirstname,
|
'first_name':userfirstname,
|
||||||
'siteurl':siteurl,
|
'siteurl':siteurl,
|
||||||
'workoutid':workoutid,
|
'workoutid':encoder.encode_hex(workoutid),
|
||||||
'btvalues':tablevalues,
|
'btvalues':tablevalues,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
<ul class="main-content">
|
<ul class="main-content">
|
||||||
<li class="grid_4">
|
<li class="grid_4">
|
||||||
<div id="theplot" class="flexplot" style="min-width:300px;">
|
<div id="theplot" class="flexplot">
|
||||||
{{ the_div|safe }}
|
{{ the_div|safe }}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
3
rowers/tests/testdata/emails/ATT00001.txt
vendored
Normal file
3
rowers/tests/testdata/emails/ATT00001.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
Binary file not shown.
@@ -1005,6 +1005,7 @@ th.rotate > div > span {
|
|||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
a.wh:link {
|
a.wh:link {
|
||||||
color: #e9e9e9;
|
color: #e9e9e9;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -564,28 +564,28 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@media (min-height: 600px) {
|
@media only screen and (min-height: 600px) {
|
||||||
.maxheight {
|
.maxheight {
|
||||||
max-height: 450px;
|
max-height: 450px;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-height: 600px) {
|
@media only screen and (min-height: 600px) {
|
||||||
.maxheight {
|
.maxheight {
|
||||||
max-height: 450px;
|
max-height: 450px;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-height: 800px) {
|
@media only screen and (min-height: 800px) {
|
||||||
.maxheight {
|
.maxheight {
|
||||||
max-height: 600px;
|
max-height: 600px;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-height: 1000px) {
|
@media only screen and (min-height: 1000px) {
|
||||||
.maxheight {
|
.maxheight {
|
||||||
max-height: 800px;
|
max-height: 800px;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
@@ -593,7 +593,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media only screen and (max-width: 600px) {
|
||||||
nav a {
|
nav a {
|
||||||
font-size: 0px;
|
font-size: 0px;
|
||||||
}
|
}
|
||||||
@@ -601,9 +601,22 @@
|
|||||||
nav a i {
|
nav a i {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#theplot .bk-grid-column {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#theplot .bk-plot-layout {
|
||||||
|
position: auto;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 450px) {
|
|
||||||
|
|
||||||
|
@media only screen and (min-width: 450px) {
|
||||||
.wrapper {
|
.wrapper {
|
||||||
grid-template-columns: 1fr 3fr;
|
grid-template-columns: 1fr 3fr;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
@@ -648,7 +661,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media only screen and (min-width: 768px) {
|
||||||
.wrapper {
|
.wrapper {
|
||||||
grid-template-columns: 1fr 4fr 1fr;
|
grid-template-columns: 1fr 4fr 1fr;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
@@ -727,7 +740,7 @@
|
|||||||
page-break-after: avoid;
|
page-break-after: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul, img {
|
ul, img, table {
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user