Skip to content

Commit f909140

Browse files
authored
Merge pull request #62 from ClericPy/dev
1.7.1
2 parents 622a4ad + 288004f commit f909140

File tree

4 files changed

+21
-25
lines changed

4 files changed

+21
-25
lines changed

requirements.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
uniparser>=1.4.4
1+
uniparser>=1.4.5
22
fastapi
33
uvicorn
44
databases
5-
torequests>=5.0.2
5+
torequests>=5.0.3
66
fire
77
jinja2
88
aiofiles
99
async_lru
10-
frequency_controller>=0.0.6

watchdogs/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
from .config import Config
44
from .main import init_app
55

6-
__version__ = '1.7.0'
6+
__version__ = '1.7.1'
77
__all__ = ['Config', 'init_app']
88
logging.getLogger('watchdogs').addHandler(logging.NullHandler())

watchdogs/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
from databases import Database
88
from fastapi import Request
9-
from frequency_controller import AsyncFrequency
109
from starlette.middleware.base import BaseHTTPMiddleware
1110
from starlette.responses import JSONResponse, RedirectResponse
1211
from torequests.utils import md5 as _md5
1312
from torequests.utils import parse_qsl, quote_plus
1413
from uniparser.crawler import RuleStorage
14+
from uniparser.parsers import AsyncFrequency
1515

1616
from .callbacks import CallbackHandlerBase
1717

watchdogs/templates/index.html

+17-20
Original file line numberDiff line numberDiff line change
@@ -143,26 +143,23 @@ <h3>
143143
<el-tab-pane label="New" name="new">
144144
<iframe v-if="'new' in clicked_tab_names" @load="init_iframe()" src="/uniparser/" frameborder="0"
145145
id="uni_iframe" style="width: 100%; height: 90%;"></iframe>
146-
<el-popover style="margin: 0 0 0 20%;" placement="top-start" title="WARNING" width="200"
147-
trigger="hover"><span style="font-size: 1em;">
148-
ParseRule's name should have the keys to generate RSS:
149-
<br />
150-
<b>text</b>
151-
<br />
152-
<b>url </b>[Optional]
153-
</span>
154-
<i slot="reference" class="el-icon-warning"></i>
155-
</el-popover>
156-
<el-button icon="el-icon-refresh-right" style="margin: 0;"
157-
title="Init rules between xml and css demo" @click="init_iframe_crawler_rule(null)">
158-
0. Init
159-
</el-button>
160-
<el-button icon="el-icon-upload" type="warning" style="margin: 0;"
161-
@click="process_crawler_rule('add', null, 0)">
162-
1. Save Crawler Rule
163-
</el-button>
164-
<el-button icon="el-icon-plus" type="success" style="margin: 0;"
165-
@click="show_form_add_new_task(true)"> 2. Add New Task</el-button>
146+
<div style="display: flex;justify-content:center;">
147+
<el-popover placement="top-start" title="WARNING" style="margin-right: 0.5em;" width="200"
148+
trigger="hover"><span style="font-size: 1em;">
149+
ParseRule's name should have these keys to generate RSS:
150+
<br />
151+
<b>text</b>
152+
<br />
153+
<b>url </b>[Optional]
154+
</span>
155+
<i slot="reference" class="el-icon-warning"></i>
156+
</el-popover>
157+
<el-button icon="el-icon-upload" type="warning" @click="process_crawler_rule('add', null, 0)">
158+
1. Save Crawler Rule
159+
</el-button>
160+
<el-button icon="el-icon-plus" type="success" @click="show_form_add_new_task(true)"> 2. Add New
161+
Task</el-button>
162+
</div>
166163
</el-tab-pane>
167164
<el-tab-pane label="Rules" name="rules">
168165
<div v-if="'rules' in clicked_tab_names" style="width: 65%; margin: 0 auto;">

0 commit comments

Comments
 (0)