Skip to content

Commit

Permalink
feat: 取消to_link拼接
Browse files Browse the repository at this point in the history
  • Loading branch information
fum committed Sep 20, 2024
1 parent eebb912 commit 6be207d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def data_resources(self):
# 跳转链接,其中%s动态替换为match_column,示例[完整链接,以https或者http开头: https://fs.investoday.net/xxxx?guid=%s, 内部链接(以/开头): /pages/to?guid=%s]
if 'match_column' in data_resource and data_resource['match_column'] in row:
filtered_row[
'to_link'] = f"{data_resource['to_link']}?{data_resource['match_column']}={row[data_resource['match_column']]}"
'to_link'] = f"{data_resource['to_link']}"
filtered_data.append(filtered_row)
data = filtered_data
except Exception:
Expand Down

0 comments on commit 6be207d

Please sign in to comment.