added the req directory
This commit is contained in:
parent
1993b83810
commit
5be381122d
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ test_*.txt
|
|||||||
*/p1.pl
|
*/p1.pl
|
||||||
*/p2.pl
|
*/p2.pl
|
||||||
user_list.txt
|
user_list.txt
|
||||||
|
req/*.ident
|
||||||
|
7
app.py
7
app.py
@ -21,7 +21,7 @@ app=Flask(__name__)
|
|||||||
# directory containing
|
# directory containing
|
||||||
# account request files...
|
# account request files...
|
||||||
WORKING_DIR = "/home/gashapwn/lyadmin/";
|
WORKING_DIR = "/home/gashapwn/lyadmin/";
|
||||||
ACCOUNT_DIR = "test/";
|
ACCOUNT_DIR = "req/";
|
||||||
FULL_PATH = str(WORKING_DIR) + str(ACCOUNT_DIR)
|
FULL_PATH = str(WORKING_DIR) + str(ACCOUNT_DIR)
|
||||||
CONF_PATH = str(WORKING_DIR) + "lyadmin.conf.json"
|
CONF_PATH = str(WORKING_DIR) + "lyadmin.conf.json"
|
||||||
|
|
||||||
@ -119,11 +119,12 @@ def signup():
|
|||||||
# our request
|
# our request
|
||||||
# This sets the ID of the request we're
|
# This sets the ID of the request we're
|
||||||
# abou to save to dsik
|
# abou to save to dsik
|
||||||
if(len(glob.glob("./test/[0-9]*ident*")) == 0):
|
if(len(glob.glob(ACCOUNT_DIR + str("[0-9]*ident*"))) == 0):
|
||||||
new_id = int(INIT_REQ_ID)
|
new_id = int(INIT_REQ_ID)
|
||||||
new_id_str = INIT_REQ_ID
|
new_id_str = INIT_REQ_ID
|
||||||
else:
|
else:
|
||||||
max_id = max(list(map( lambda path : path.split("/")[-1].split(".")[0] , glob.glob("./test/[0-9]*ident*"))))
|
max_id = max(list(map( lambda path : path.split("/")[-1].split(".")[0] , glob.glob(str(ACCOUNT_DIR) + "[0-9]*ident*"))))
|
||||||
|
# max_id = max(list(map( lambda path : path.split("/")[-1].split(".")[0] , glob.glob("./test/[0-9]*ident*"))))
|
||||||
zpad = len(max_id)
|
zpad = len(max_id)
|
||||||
new_id = int(max_id)+1
|
new_id = int(max_id)+1
|
||||||
new_id_str = str(new_id).zfill(zpad)
|
new_id_str = str(new_id).zfill(zpad)
|
||||||
|
@ -5,7 +5,7 @@ use strict;
|
|||||||
use JSON;
|
use JSON;
|
||||||
|
|
||||||
my $WORKING_DIR = "/home/gashapwn/lyadmin/";
|
my $WORKING_DIR = "/home/gashapwn/lyadmin/";
|
||||||
my $ACCOUNT_DIR = "test/";
|
my $ACCOUNT_DIR = "req/";
|
||||||
|
|
||||||
my $FULL_PATH = "$WORKING_DIR$ACCOUNT_DIR";
|
my $FULL_PATH = "$WORKING_DIR$ACCOUNT_DIR";
|
||||||
my $CONF_PATH = $WORKING_DIR."lyadmin.conf.json";
|
my $CONF_PATH = $WORKING_DIR."lyadmin.conf.json";
|
||||||
|
4
req/00000.ident.done
Normal file
4
req/00000.ident.done
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
testuser1234
|
||||||
|
asdfasdfas
|
||||||
|
SHELL_BASH
|
||||||
|
sdasdfasdfasdfasd
|
Loading…
Reference in New Issue
Block a user