faizhalas commited on
Commit
1c8b49d
·
verified ·
1 Parent(s): 46fad51

Update pages/reader.py

Browse files
Files changed (1) hide show
  1. pages/reader.py +3 -3
pages/reader.py CHANGED
@@ -22,7 +22,7 @@ def connect_gsheet():
22
  url = f"https://docs.google.com/spreadsheets/d/{sheet_id}/gviz/tq?tqx=out:csv&sheet={sheet_name}"
23
  df = pd.read_csv(url, dtype=str, header=0)
24
  df = df.sort_index(ascending=False).fillna('NaN')
25
- df["Full-text"] = df[["Abstract (en)", "Introduction", "Method", "Result & Discussion", "Conclusion"]].agg(" - ".join, axis=1)
26
  return df
27
 
28
  df = connect_gsheet()
@@ -51,8 +51,8 @@ title = format_html(row.get("Title", ""))
51
  author = format_html(row.get("Authors", ""))
52
  intro = format_html(row.get("Introduction", ""))
53
  method = format_html(row.get("Method", ""))
54
- abstracten = format_html(row.get("Abstract (en)", ""))
55
- abstractid = format_html(row.get("Abstract (id)", ""))
56
  keywords = format_html(row.get("Keywords", ""))
57
  affiliation = format_html(row.get("Institution", ""))
58
  result = format_html(row.get("Result", ""))
 
22
  url = f"https://docs.google.com/spreadsheets/d/{sheet_id}/gviz/tq?tqx=out:csv&sheet={sheet_name}"
23
  df = pd.read_csv(url, dtype=str, header=0)
24
  df = df.sort_index(ascending=False).fillna('NaN')
25
+ df["Full-text"] = df[["Abstract", "Introduction", "Method", "Result & Discussion", "Conclusion"]].agg(" - ".join, axis=1)
26
  return df
27
 
28
  df = connect_gsheet()
 
51
  author = format_html(row.get("Authors", ""))
52
  intro = format_html(row.get("Introduction", ""))
53
  method = format_html(row.get("Method", ""))
54
+ abstracten = format_html(row.get("Abstract", ""))
55
+ abstractid = format_html(row.get("Abstrak", ""))
56
  keywords = format_html(row.get("Keywords", ""))
57
  affiliation = format_html(row.get("Institution", ""))
58
  result = format_html(row.get("Result", ""))