Compare commits
No commits in common. "main" and "nov12" have entirely different histories.
|
@ -314,7 +314,6 @@ def lpp_audit(msg):
|
||||||
script_json["script_file_path"] = script_path1
|
script_json["script_file_path"] = script_path1
|
||||||
script_json["script_file"] = hash2
|
script_json["script_file"] = hash2
|
||||||
script_json["type"] = "script-json"
|
script_json["type"] = "script-json"
|
||||||
script_json["screenplay_name"] = str(name_script)
|
|
||||||
scriptconversion["script-json"] = script_json
|
scriptconversion["script-json"] = script_json
|
||||||
print("blockchain script conversion 5.2")
|
print("blockchain script conversion 5.2")
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -45,15 +45,13 @@ def certificateGenrate(name,file_from,Hash,projectname="NAN",matic="0"):
|
||||||
f'{basepath}/lpp/templates/lpp/blockchainCertificate.html')
|
f'{basepath}/lpp/templates/lpp/blockchainCertificate.html')
|
||||||
html = template.render(context)
|
html = template.render(context)
|
||||||
options = {
|
options = {
|
||||||
'page-size': 'A4',
|
'page-size': 'A5',
|
||||||
'zoom': 12.5,
|
'zoom': 3.5,
|
||||||
'margin-top': '0.0in',
|
'margin-top': '0.0in',
|
||||||
'margin-right': '0.0in',
|
'margin-right': '0.0in',
|
||||||
'margin-bottom': '0.0in',
|
'margin-bottom': '0.0in',
|
||||||
'margin-left': '0.0in',
|
'margin-left': '0.0in',
|
||||||
'enable-local-file-access': '',
|
'enable-local-file-access': '',
|
||||||
'orientation': 'Landscape',
|
|
||||||
'page-height': '11in',
|
|
||||||
}
|
}
|
||||||
pdfkit.from_string(
|
pdfkit.from_string(
|
||||||
html, f'{basepath}/lpp/certificate/certificate.pdf', options=options)
|
html, f'{basepath}/lpp/certificate/certificate.pdf', options=options)
|
||||||
|
|
|
@ -13,30 +13,30 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body style="margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif;font-size: 16px; ">
|
<body style="margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif;font-size: 16px;">
|
||||||
<div style="box-shadow: 0px 4px 27px 0px #00000040;">
|
<div style="box-shadow: 0px 4px 27px 0px #00000040;">
|
||||||
<img src={{basepath}}/static/media/HeaderImageCertificate.png style="width: 100%; height: 240px;" >
|
<img src={{basepath}}/static/media/HeaderImageCertificate.png style="width: 100%;">
|
||||||
<table style="border-collapse: collapse;
|
<table style="border-collapse: collapse;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 0px 0 50px 0px;height: 720px;">
|
margin: 0px 0 50px 0px">
|
||||||
<tr>
|
<tr>
|
||||||
<td rowspan="4" style="text-align: center;">
|
<td rowspan="4" style="text-align: center;">
|
||||||
<img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 600px;
|
<img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 300px;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -70px; padding: 0 20px;">
|
top: -70px; padding: 0 20px;">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<h2 style="font-family: Poppins;
|
<h2 style="font-family: Poppins;
|
||||||
font-size: 26px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #252525;">Blockchain Protection Certificate no.{{id}}
|
color: #252525;">Blockchain Protection Certificate no.{{id}}
|
||||||
</h2>
|
</h2>
|
||||||
</td>
|
</td>
|
||||||
<td rowspan="4" style="text-align: center;">
|
<td rowspan="4" style="text-align: center;">
|
||||||
<img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 600px;
|
<img src={{basepath}}/static/media/verticalLineGolden.png alt="v-line" style="height: 300px;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 70px; padding: 0 20px;">
|
top: 70px; padding: 0 20px;">
|
||||||
|
@ -44,28 +44,28 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="font-family: Poppins;
|
<td style="font-family: Poppins;
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-align: left;
|
text-align: center;
|
||||||
color: #252525;
|
color: #252525;
|
||||||
line-height: 50px;
|
line-height: 32px;
|
||||||
">This is to certify that
|
">This is to certify that
|
||||||
<span style="font-family: Poppins;
|
<span style="font-family: Poppins;
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: 252525;">{{File_name}}
|
color: 252525;">{{File_Name}}
|
||||||
</span>
|
</span>
|
||||||
uploaded by
|
uploaded by
|
||||||
<span style="font-family: Poppins;
|
<span style="font-family: Poppins;
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: 252525;">{{name}}
|
color: 252525;">{{name}}
|
||||||
</span>
|
</span>
|
||||||
/ created by
|
/ created by
|
||||||
<span style="font-family: Poppins;
|
<span style="font-family: Poppins;
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: 252525;">
|
color: 252525;">
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
has been
|
has been
|
||||||
uploaded on Polygon Blockchain on
|
uploaded on Polygon Blockchain on
|
||||||
<span style="font-family: Poppins;
|
<span style="font-family: Poppins;
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: 252525;">
|
color: 252525;">
|
||||||
|
@ -82,22 +82,23 @@
|
||||||
</span>
|
</span>
|
||||||
for which My Next Film has paid
|
for which My Next Film has paid
|
||||||
<span style="font-family: Poppins;
|
<span style="font-family: Poppins;
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: 252525;"> {{Matic}}
|
color: 252525;"> {{Matic}}
|
||||||
</span> MATIC. <br>This is also to certify that the above file is stored and can be accessed using the
|
</span> MATIC. This is
|
||||||
|
also to certify that the above file is accessible at the
|
||||||
<span style="font-family: Poppins;
|
<span style="font-family: Poppins;
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: 252525;">
|
color: 252525;">
|
||||||
transaction id {{hash}}
|
transaction {{hash}}
|
||||||
</span>
|
</span>
|
||||||
only through the
|
Only Through the
|
||||||
combination of Public Key and Private Key exclusively known to the
|
combination of Public Key and Private Key exclusively known to the
|
||||||
<span style="font-family: Poppins;
|
<span style="font-family: Poppins;
|
||||||
font-size: 24px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: 252525;">
|
color: 252525;">
|
||||||
|
@ -108,18 +109,18 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<p style="font-family: Poppins;
|
<p style="font-family: Poppins;
|
||||||
font-size: 20px;
|
font-size: 12px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: #252525;
|
color: #252525;
|
||||||
margin-bottom: -10px;
|
margin-bottom: -10px;
|
||||||
">Note:</p>
|
">Note:</p>
|
||||||
<p style="font-family: Poppins;
|
<p style="font-family: Poppins;
|
||||||
font-size: 18px;
|
font-size: 10px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: #616161;
|
color: #616161;
|
||||||
line-height:44px;
|
line-height:22px;
|
||||||
">The file resides on Decentralized Inter Planetary File System Storage. The location of the file
|
">The file resides on Decentralized Inter Planetary File System Storage. The location of the file
|
||||||
is encrypted and stored on Polygon Blockchain forever. The content is Transparent,
|
is encrypted and stored on Polygon Blockchain forever. The content is Transparent,
|
||||||
Decentralized, and Secured in a with Blockchain's Enhanced Security, Immutability, and
|
Decentralized, and Secured in a with Blockchain's Enhanced Security, Immutability, and
|
||||||
|
@ -134,21 +135,21 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p style="font-family: Poppins;
|
<p style="font-family: Poppins;
|
||||||
font-size: 20px;
|
font-size: 12px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: #EE3C4D;
|
color: #EE3C4D;
|
||||||
line-height: 0px;
|
line-height: 0px;
|
||||||
">Disclaimer:-</p>
|
">Disclaimer:-</p>
|
||||||
<p style="font-family: Poppins;
|
<p style="font-family: Poppins;
|
||||||
font-size: 18px;
|
font-size: 10px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: #616161;
|
color: #616161;
|
||||||
line-height: 44px;
|
line-height: 22px;
|
||||||
">
|
">
|
||||||
<span style="font-family: Poppins;
|
<span style="font-family: Poppins;
|
||||||
font-size: 20px;
|
font-size: 12px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
color: #252525;
|
color: #252525;
|
||||||
|
@ -167,7 +168,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="width: 100%; background: #33B0CA; height: 19px;"></div>
|
<div style="width: 100%; background: #33B0CA; height: 15px;"></div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
dfdf
|
|
|
@ -338,7 +338,6 @@ def run_audit_in_counter(msg):
|
||||||
script_json["script_file_path"] = script_path1
|
script_json["script_file_path"] = script_path1
|
||||||
script_json["script_file"] = hash2
|
script_json["script_file"] = hash2
|
||||||
script_json["type"] = "script-json"
|
script_json["type"] = "script-json"
|
||||||
script_json["screenplay_name"] = str(screenplay_name)
|
|
||||||
audit_data["script-json"] = script_json
|
audit_data["script-json"] = script_json
|
||||||
print("data_uploaded")
|
print("data_uploaded")
|
||||||
except Exception as exp:
|
except Exception as exp:
|
||||||
|
@ -489,7 +488,6 @@ def run_audit_in_counter(msg):
|
||||||
script_json["script_file_path"] = script_path1
|
script_json["script_file_path"] = script_path1
|
||||||
script_json["script_file"] = hash2
|
script_json["script_file"] = hash2
|
||||||
script_json["type"] = "script-json"
|
script_json["type"] = "script-json"
|
||||||
script_json["screenplay_name"] = str(screenplay_name)
|
|
||||||
audit_data["script-json"] = script_json
|
audit_data["script-json"] = script_json
|
||||||
print("data_uploaded")
|
print("data_uploaded")
|
||||||
except Exception as exp:
|
except Exception as exp:
|
||||||
|
|
Loading…
Reference in New Issue