mirror of
				https://github.com/dgtlmoon/changedetection.io.git
				synced 2025-11-04 00:27:48 +00:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			0.49.18
			...
			markup-dep
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					fdef8a62fd | ||
| 
						 | 
					ba0b6071e6 | ||
| 
						 | 
					a6603d5ad6 | ||
| 
						 | 
					26833781a7 | 
@@ -663,9 +663,8 @@ class model(watch_base):
 | 
			
		||||
    def compile_error_texts(self, has_proxies=None):
 | 
			
		||||
        """Compile error texts for this watch.
 | 
			
		||||
        Accepts has_proxies parameter to ensure it works even outside app context"""
 | 
			
		||||
        from flask import (
 | 
			
		||||
            Markup, url_for
 | 
			
		||||
        )
 | 
			
		||||
        from flask import url_for
 | 
			
		||||
        from markupsafe import Markup
 | 
			
		||||
 | 
			
		||||
        output = []  # Initialize as list since we're using append
 | 
			
		||||
        last_error = self.get('last_error','')
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@ import urllib3
 | 
			
		||||
import time
 | 
			
		||||
 | 
			
		||||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
 | 
			
		||||
name = 'Re-stock & Price detection for single product pages'
 | 
			
		||||
name = 'Re-stock & Price detection for pages with a SINGLE product'
 | 
			
		||||
description = 'Detects if the product goes back to in-stock'
 | 
			
		||||
 | 
			
		||||
class UnableToExtractRestockData(Exception):
 | 
			
		||||
 
 | 
			
		||||
@@ -52,7 +52,7 @@ class SignalHandler:
 | 
			
		||||
                else:
 | 
			
		||||
                    handle_watch_update(self.socketio_instance, watch=watch, datastore=self.datastore)
 | 
			
		||||
 | 
			
		||||
                logger.info(f"Signal handler processed watch UUID {watch_uuid}")
 | 
			
		||||
                logger.trace(f"Signal handler processed watch UUID {watch_uuid}")
 | 
			
		||||
            else:
 | 
			
		||||
                logger.warning(f"Watch UUID {watch_uuid} not found in datastore")
 | 
			
		||||
 | 
			
		||||
@@ -94,7 +94,7 @@ class SignalHandler:
 | 
			
		||||
                # For each item in the queue, send a signal, so we update the UI
 | 
			
		||||
                for t in running_update_threads:
 | 
			
		||||
                    if hasattr(t, 'current_uuid') and t.current_uuid:
 | 
			
		||||
                        logger.debug(f"Sending update for {t.current_uuid}")
 | 
			
		||||
                        logger.trace(f"Sending update for {t.current_uuid}")
 | 
			
		||||
                        # Send with app_context to ensure proper URL generation
 | 
			
		||||
                        with app.app_context():
 | 
			
		||||
                            watch_check_update.send(app_context=app, watch_uuid=t.current_uuid)
 | 
			
		||||
 
 | 
			
		||||
@@ -102,7 +102,7 @@ $(document).ready(function () {
 | 
			
		||||
                // Tabs at bottom of list
 | 
			
		||||
                $('#post-list-mark-views').toggleClass("has-unviewed", general_stats.has_unviewed);
 | 
			
		||||
                $('#post-list-with-errors').toggleClass("has-error", general_stats.count_errors !== 0)
 | 
			
		||||
                $('#post-list-with-errors a').text(`xxxxWith errors (${ general_stats.count_errors })`);
 | 
			
		||||
                $('#post-list-with-errors a').text(`With errors (${ general_stats.count_errors })`);
 | 
			
		||||
 | 
			
		||||
                $('body').toggleClass('checking-now', watch.checking_now && window.location.href.includes(watch.uuid));
 | 
			
		||||
            });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user