Table in Python docx

Here its printing sunday in all the cells in the table docu = docx.Document() daylist = [“monday”, “tuesday”, “wednesday”, “thursday”, “friday”, “saturday”, “sunday”] num_of_days = int(input(‘enter days’)) num_of_lectures = int(input(‘lecture number’)) timetable = docu.add_table(rows=num_of_days, cols=num_of_lectures) tablecell = timetable.cell(0, 1) tablerow = timetable.rows[1] for day in daylist: for tablerow in timetable.rows: for tablecell in tablerow.cells: tablecell.text…

Details

How to pass a context path to a curl post

I’m trying to invoke a service as below to create an object using Json template as a input to the service and the service require the following {Dynamicvalue} to be passed . Can someone please help ? curl -k –silent -X POST –header ‘Content-Type: application/json’ –header ‘Accept: application/json’ –header “$AUTH_HEADER_VALUE” -d @”$SLOCAL_FILE” https://test.com/product/api/test/services/rule/v1/{Dynamicvalue}/testapi` I’m using…

Details

Cookies secure and httpOnly with React and Cookie-Storage

im trying to put secure and httponly in my cookie, but doesn’t recognize it import { CookieStorage } from ‘cookie-storage’; const KEY_SECURE = ‘cookie-secure’; const store = new CookieStorage({ httpOnly: true, secure: true, sameSite: ‘strict’, }); export default class AuthToken { static getToken() { return JSON.parse(store.getItem(KEY_SECURE)) || null; } static setToken(token) { if (token) {…

Details