Skip to content

Commit dc5b288

Browse files
committed
테스트중.....
1 parent 07d1437 commit dc5b288

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

zimmyrabbit/templates/jenkins/main.html

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,14 @@ <H1>JENKINS</H1>
44
{% csrf_token %}
55
<textarea name="content" id="content" row="15"></textarea>
66
<input type="submit" value="검증">
7-
</form>
7+
</form>
8+
9+
{% if context_list %}
10+
<ul>
11+
{% for context in context_list %}
12+
<li>{{ context.subject }}</li>
13+
{% endfor %}
14+
</ul>
15+
{% else %}
16+
<p>X</p>
17+
{% endif %}

zimmyrabbit/zimmyrabbit/views.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ def check_model(request) :
1313
scontent = sorted(set(content.split()))
1414
print(scontent)
1515

16+
context = {"data": scontent}
17+
1618
'''
1719
command = ''
1820
output = subprocess.check_output(command, shell=True, text=True)
@@ -37,9 +39,9 @@ def check_model(request) :
3739
print("Accounts:", accounts)
3840
print("Dates:", dates)
3941
print("Commit Logs:", commit_logs)
40-
4142
'''
42-
43+
44+
'''
4345
url = ''
4446
username = ''
4547
password = '' #token
@@ -74,5 +76,5 @@ def check_model(request) :
7476
print(f"JSON 디코드 오류 발생: {json_err}")
7577
else:
7678
print(f"API 호출 실패 - 상태 코드: {response.status_code}")
77-
79+
'''
7880
return redirect('zimmyrabbit:index')

0 commit comments

Comments
 (0)