auto reload. added back mobile search.

This commit is contained in:
piair 2023-07-03 21:29:26 +02:00
parent 5c23097873
commit 659e7d3664
4 changed files with 13 additions and 13 deletions

View File

@ -10,4 +10,4 @@ RUN curl -sSLO https://piair.xyz/download/chrome.deb \
&& dpkg -i chrome.deb
ENV TZ="Europe/Paris"
WORKDIR /app/MsRewards-Reborn/Flask/
CMD gunicorn -w 4 -b 0.0.0.0:1234 'app:app'
CMD gunicorn --reload -w 4 -b 0.0.0.0:1234 'app:app'

View File

@ -56,12 +56,12 @@
<tr>
TODO
</tr>
<tr>reorder config</tr>
<tr>delete config</tr>
<tr>rename</tr>
<tr>real override</tr>
<tr>ban button</tr>
<tr>database truc</tr>
<tr><td>reorder config</td></tr>
<tr><td>real override</td></tr>
<tr><td>ban button</td></tr>
<tr><td>database truc</td></tr>
<tr><td>pourquoi tout ne se lance pas bien ?</td></tr>
<tr><td>logs viewer</td></tr>
</table>
</form>
{% endif %}

10
V6.py
View File

@ -662,7 +662,7 @@ def fidelity():
pause = driver.find_element(By.CSS_SELECTOR, f'[class="c-action-toggle c-glyph f-toggle glyph-pause"]') # mettre le truc en pause
pause.click()
except Exception as e:
printf(f"erreur : probablement pas de cartes {e}")
printf(f"erreur lors du click de pause: probablement pas de cartes {e}")
return("no cards")
cartes = driver.find_elements(By.CSS_SELECTOR, f'[ng-repeat="item in $ctrl.transcludedItems"]')
nb_cartes = len(cartes)
@ -752,10 +752,10 @@ def daily_routine(custom = False):
except Exception as e:
log_error(e)
#try:
# bing_mobile_search()
#except Exception as e:
# log_error(e)
try:
bing_mobile_search()
except Exception as e:
log_error(e)
try:
log_points(g._mail)

View File

@ -1 +1 @@
v6.0.9
v6.0.10