Skip to content

Commit 5a3f020

Browse files
committed
doc: update
1 parent 1c91498 commit 5a3f020

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

DEV.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# WikiTeam3 internal
2+
3+
## Images.txt structure
4+
5+
```python
6+
filename + "\t" + url + "\t" + uploader
7+
+ "\t" + (str(size) if size else NULL)
8+
+ "\t" + (str(sha1) if sha1 else NULL)
9+
+ "\t" + (timestamp if timestamp else NULL)
10+
+ "\n"
11+
```
12+
13+
*optional fields:
14+
- "null" (magic None value, since wikiteam3 v4.0.0)
15+
- "False" (magic None value, before wikiteam3 v4.0.0)
16+
- not present (ancient wikiteam3 versions)
17+
118
# Snippets
219

320
## API Output format
@@ -69,4 +86,4 @@ wikiteam3 workaround: https://github.com/saveweb/wikiteam3/commit/fd5a02a649dcf3
6986
https://docs.openssl.org/1.1.1/man1/ciphers/
7087
https://docs.openssl.org/master/man1/openssl-ciphers/
7188

72-
workaround: https://github.com/DigitalDwagon/wikiteam3/blob/8a054882de19c6b69bc03798d3044b7b5c4c3c88/wikiteam3/utils/monkey_patch.py#L63-L84
89+
wikiteam3 workaround: https://github.com/saveweb/wikiteam3/blob/8a054882de19c6b69bc03798d3044b7b5c4c3c88/wikiteam3/utils/monkey_patch.py#L63-L84

tests/test_wiki_avoid.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import unittest
22
from unittest.mock import patch, MagicMock
3-
from urllib.parse import urlparse
3+
44
import requests
5-
from wikiteam3.dumpgenerator.config import Config, OtherConfig
5+
from wikiteam3.dumpgenerator.config import Config
66
from wikiteam3.utils.wiki_avoid import avoid_robots_disallow
77

8-
# filepath: wikiteam3/utils/test_wiki_avoid.py
9-
10-
11-
128

139
class TestAvoidRobotsDisallow(unittest.TestCase):
1410

0 commit comments

Comments
 (0)