Skip to content

Commit 9d9d7cf

Browse files
last chance for . -> ,
1 parent 3c82279 commit 9d9d7cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common_grade_export/src/exporters/moodle_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def parse_person_table(cls, data, users_params):
5353
activity_id = activity[itemname_key]["id"].split("_")[1]
5454
activity["grade"]["content"] = activity["grade"][
5555
"content"
56-
].rsplit(">", 1)[-1]
56+
].rsplit(">", 1)[-1].replace('.', ',')
5757
else:
5858
activity_name = "total"
5959
if activity["grade"]["content"] == "-":

common_grade_export/src/utils/gspread.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ def write_data_to_table(
4545
wk_content = sh.worksheet_by_title(sheet_name)
4646

4747
# wk_content.set_dataframe(df_data, "A1", copy_head=True) # problem w/float dot
48-
stream = StringIO(df_data.to_csv(sep=',', encoding='utf-8', decimal=','))
49-
df = pd.read_csv(stream)
50-
df_data = pd.DataFrame(df.to_dict("records"))
48+
#stream = StringIO(df_data.to_csv(sep=',', encoding='utf-8', decimal=','))
49+
#df = pd.read_csv(stream)
50+
#df_data = pd.DataFrame(df.to_dict("records"))
5151
wk_content.set_dataframe(df=df_data, start="A1", copy_head=True)
5252

5353

0 commit comments

Comments
 (0)