mirror of
https://github.com/alabianca/OT_Reportv2.git
synced 2025-12-16 19:35:02 -06:00
gitattributes
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -1,3 +1,4 @@
|
||||
htmlFiles/* linguist-vendored
|
||||
htmlFilesv2/* linguist-vendored
|
||||
Untitled.ipynb linguist-vendored
|
||||
.ipynb_checkpoints/* linguist-vendored
|
||||
890
.idea/workspace.xml
generated
890
.idea/workspace.xml
generated
File diff suppressed because it is too large
Load Diff
@@ -30,6 +30,7 @@ class HtmlReader:
|
||||
#wtf
|
||||
row = tbody.contents[2].contents[0].contents[0].contents[0].contents[0]
|
||||
|
||||
print(row.contents[2].contents)
|
||||
summary = {
|
||||
"date": row.contents[1].contents[0].text,
|
||||
"time": row.contents[2].contents[0].text,
|
||||
@@ -50,7 +51,7 @@ class HtmlReader:
|
||||
|
||||
cardio = {
|
||||
"avg_heart_rate": tbody.contents[1].contents[0].contents[0].text,
|
||||
"peak_heart_rate": tbody.contents[3].contents[0].contents[0].text
|
||||
"peak_heart_rate": tbody.contents[3].contents[0].contents[0].contents[1].string
|
||||
}
|
||||
|
||||
return cardio
|
||||
@@ -75,9 +76,15 @@ class HtmlReader:
|
||||
summary = self.get_summary(soup)
|
||||
cardio = self.get_cardio(soup)
|
||||
|
||||
print(this_class)
|
||||
print(summary)
|
||||
print(cardio)
|
||||
|
||||
|
||||
event = {
|
||||
**this_class,
|
||||
**summary,
|
||||
**cardio
|
||||
}
|
||||
|
||||
#print(event)
|
||||
file_handle.close()
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
{"last_run": "2018-11-14"}
|
||||
{"last_run": "2018-11-15"}
|
||||
Reference in New Issue
Block a user