mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-08-19 13:08:46 -06:00
16 lines
217 B
Python
16 lines
217 B
Python
![]() |
import sys
|
||
|
import json
|
||
|
|
||
|
f = open(sys.argv[1])
|
||
|
data = json.load(f)
|
||
|
f.close()
|
||
|
|
||
|
v = []
|
||
|
for el in data:
|
||
|
if not ("/external/" in el['file']):
|
||
|
v.append(el)
|
||
|
|
||
|
f = open(sys.argv[1], 'w')
|
||
|
json.dump(v, f, indent=2)
|
||
|
f.close()
|