Skip to content

Commit

Permalink
fix: change free-only from false to none to get full sheets including…
Browse files Browse the repository at this point in the history
… freesheets
  • Loading branch information
Freddd13 committed Oct 13, 2024
1 parent e358f82 commit 35a7086
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _last_download_signal
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6e06a070bc907e840e1c65c5c21c41e9 193896
6e06a070bc907e840e1c65c5c21c41e9 193896.0
2 changes: 1 addition & 1 deletion _od_refresh_token
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.AVUAQfAjksPtwkqlEYSP6ykT9_8QVAYKO8ZOkR7HHnLyet-IAA4.AgABAwEAAADW6jl31mB3T7ugrWTT8pFeAwDs_wUA9P_btrJL6GUUovxQPwp61UhJTSDuB4EJZYNmW7FtIIkheDJGkbkIm4CaFqS4PH48Ogg505Tahq0le8qL4IQll1hc4_HbyRbE9fOBc3lUDU2jwYTQaUoRoQ1rx1JsY5_qdset--M1kCgs2l78GdYmpWYD7hjnERSkflYaChk4fRKrpI52V-QQoG5IX5QNeVgghoJPSEVfzrsn80h0389Kozl4tX3W7C_iovygfDrEWiRUn8ivkXhUyToXN9nu-lY-STW3MvBtOkwIJsDdiRUUBCW9H_ozTkhEyPPMyQPIr3x1G5Ul7mNq4F8-LX-RFdAdfHOF3Czdzh7tVMSo_KiOJr20A6nr5kOpIEjXxIWg9XtjgWmI8F2T5sBZ10yKLXSUXxtMCob9x0j4TK99GzZm5tTFtw1PxZxQZJ3XNDM9CBgs9ULmK_8g8-SR3X0zbdN-ZHjRAzTnk-vcoIfDac4aakh9MLjzPK3M7nD8oHuNP4ric2V4zmwwBsiEaAN8V5xtQzE1Tc9V1iW6oxjWPGksUt6gno65LTKosP6sINsQI5ZYzmBue8EfxfYpPHdxBQtjGzTYRkplwVvlOd0lE7_Var6ckdlA4HGL9_nSRXlBzXL8FMvtTwkm2ZlXU0U7BA9DZjofhMd2GYVxOGwpxzsvlwiJyRcxAeiOP3BAlzlqC9kYd4yBstdv1nS3rD86kqaAxiILTZgG2iNm7807hgWZNC5y31on8FHet-2Eujak1vCNGAgoM_Mp0Z97PX-OnBln6LdpVSsECG9v3No_fcatww
0.AVUAQfAjksPtwkqlEYSP6ykT9_8QVAYKO8ZOkR7HHnLyet-IAA4.AgABAwEAAADW6jl31mB3T7ugrWTT8pFeAwDs_wUA9P8jRL_2AsLkhcKdU1PCx5y59ZOcRtIlFBkmwSiUnyBBdMh-f9_9LfyI7Hhza46W57lro10Omn49d0k5-mNtMrdAsp8wtdt5K8VWDXOHesvjMOKdFHLqiocw449SKAHHMuz8KleNGxNRBMK2WYGAfXWLkXDLs2zte8-pnLYPZsOsoaccDDQ1rIKofwexaVMsRAhUZkrpe_p1Q_1FLghaf1J_7pEAhTzwMpkhqj0hyFzQHDw-1b0HL8nBHuKHdAc_74IYadg-0CwmIQo9DY8ubwKZoO3YASMbRzLbY_AxbapOMkUM2WN2vxRMxVdrnGaHbfoLdyIksxnd9ymHI8csf3WCMO2L5FAVLEaF4NehNtEGFJo_olmholjLJFscRNBgoGvxSkKLJx9oevf0DjznvNCBMpD4Gv3RvJFQ-LatXugEr41wdfjxyQj-qP4wEQiy8a0czPitOL0A_kgZ1bRnQdQGPHDsbYAtP8-uPTjXGfTPQSwYSBlNeawEnuMXh2-0MTDw69dOwBdJZklXxA3o6d2ze7io3oZOhzRl7nPkReuuNcOrMbH0EL6qbq2zXVuFBHzLkIdAEJ0vSwCEUx7BtGx2Vl8Oy3FCzTaACa5fP5Iu1HR-3-SBvwaEe0T5wGzyEANziGUIsf4bAU4jz2-dVx1tPJ_WEoU7DE2noSDThLq4yTWz3vE_WRhle-MCxevwHN1_LqT3mQnYtPV_FQk-fujIQq91IkiUcCknM7nKHxsR0hCQraC6C2miTWpKGsG1pARWsjE5u1x5Kksyr3uIWw
2 changes: 1 addition & 1 deletion _outlook_refresh_token
Original file line number Diff line number Diff line change
@@ -1 +1 @@
M.C546_BL2.0.U.-Cmv!nCFcMkKEJHjC3K*ebTrybALe8aMUMlXkzf2nN!nhV1m4sertWi2CMYP0sGetAuI6293e61oGWd3H5*xYHSLSbQ2RrKaTXcoejk4N9biScy*QXrGoprjFEq09RZzYUjCieFbk5rUzo3WgflW8hXx3GTGFvYhMgXsqP5O69i7tIXc24dAfRL7WgZUBzUTBVKy4qWJmKOMzvSi3h3sXvog8!x!sIKpSunk0rGE!nDOKA7obX5DSd0x1VF65uuJbdmG094H0VdU*jOLPyY2A6JkzOwO9L5f41lUwSMdKEF6eGACuuuhAslcXY5*GNgdou!eT!j3hRpOln5tMPcUg2dHYIr5SSt6YZTRFaTyasdc9u91e2rc8puZRZwSJ1MjX1k1RfpZfHjo8do4FOEOw8fQ$
M.C546_SN1.0.U.-CjESrlvy!9IHg1rEdZD8CZoRdqLxEffH06GkZ6o8yN!BZsFZnqllhZxGqMNKUvH*AQ2mN*QHvv3Og!M40DxbEYBnpLAQh2it2RNq9A9l47Y*yyvnMhIDyW9NNNsCFTwZWPi20xmUka1D14WettMI8TR0QdvHn!pRujjnl7xCifjmwoaNUwY09hTxb42PZGrpJIjp1xkl6H*5UGHzELSZgUDpURKvT1*XNPw2nuQQ*u*GOS6Ongvb9kN3NCrqNxuQ*cn!x3UIPn2LUqntDe1CmLqaWIYFHLGaAYUdvutwWL8C6dXwTOJBvO5Ieqc39!EwSwaC9eOvsDPsLGABKhOAV28oDnCC9qBX7wuqIqDoNjCAPyg!Y!WtsR0PWEyvph6x2HxsiWRGzFVe1AuA6toQJ*Q$
6 changes: 5 additions & 1 deletion auto_score/directly_request/mms.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ def get_exchange_rates(self):
return response.json()
return None

# free only - true/false/none--> false will not return free sheets, thus we should use none to get full sheets
def get_recent_sheets(
self, username: str, last_sheetnum: int, iso="USD", free_only=False
self, username: str, last_sheetnum: int, iso="USD", free_only=None
):
entry_links, entry_sheetnums, entry_titles = [], [], []

Expand Down Expand Up @@ -190,6 +191,9 @@ def get_recent_sheets(
items = []
for item in sheet_search:
price = float(item.get("price", -1))
print("=========================================")
print("price:", price)
print("item:", item)
if abs(price) < 1e-6: # free sheet
# if 1: # debug: all sheets
title = f"{item['author']['name']} | {item['title']}"
Expand Down

0 comments on commit 35a7086

Please sign in to comment.