Quarterly report pursuant to Section 13 or 15(d)

Long-term Debt, Net - Narrative (Details)

v3.22.2.2
Long-term Debt, Net - Narrative (Details)
Apr. 22, 2022
USD ($)
lender
$ / shares
shares
Mar. 14, 2022
USD ($)
unaffiliated_lender
d
$ / shares
Aug. 31, 2021
USD ($)
$ / shares
shares
Jul. 31, 2022
USD ($)
Apr. 30, 2022
USD ($)
Apr. 25, 2022
$ / shares
shares
Jul. 31, 2021
USD ($)
Nov. 05, 2018
USD ($)
Debt Instrument [Line Items]                
Number of unaffiliated lenders | unaffiliated_lender   2            
Letter of credit or surety bond posted $ 18,300,000       $ 18,300,000      
Restricted cash       $ 6,433,397 6,433,397   $ 3,722,831  
Deferred financing costs       302,834 369,902      
Warrant                
Debt Instrument [Line Items]                
Vesting period of warrant     5 years     5 years    
2022 Convertible Notes                
Debt Instrument [Line Items]                
Debt instrument, face amount of loan   $ 10,000,000            
Payment for lender legal fees   $ 135,562            
Amortization period of deferred financing cost debt discount   1 year            
2022 Convertible Notes | Convertible Debt                
Debt Instrument [Line Items]                
Debt instrument, face amount of loan   $ 5,000,000            
2022 Convertible Notes | Convertible Notes Payable                
Debt Instrument [Line Items]                
Conversion price (in dollars per share) | $ / shares   $ 1.00            
Average closing price of common stock (in dollars per share) | $ / shares   $ 2.00            
Consecutive trading day period | d   30            
Debt instrument, term   5 years            
Interest rate of debt (as a percent)   12.00%            
Two Thousand Twenty Two Revolving Credit Facility | Revolving Credit Facility                
Debt Instrument [Line Items]                
Line of credit, outstanding balance       0        
Deferred financing costs       112,100        
Two Thousand Twenty Two Revolving Credit Facility | Revolving Credit Facility | Warrant                
Debt Instrument [Line Items]                
Number of securities called by warrants or rights (in shares) | shares           100,000    
Exercise price of warrants (in dollars per share) | $ / shares           $ 1.00    
Two Thousand Twenty Two Revolving Credit Facility | Line of Credit | Revolving Credit Facility                
Debt Instrument [Line Items]                
Debt instrument, term   1 year            
Interest rate of debt (as a percent)   12.00%            
Line of credit, maximum borrowing capacity   $ 20,000,000            
Commitment fee (as a percent)   1.00%            
Commitment fee   $ 200,000            
Replacement period   6 months            
Additional commitment fee (as a percent)   1.00%            
Intercreditor Agreement                
Debt Instrument [Line Items]                
Number of lenders | lender 2              
Intercreditor Agreement | Warrant                
Debt Instrument [Line Items]                
Number of securities called by warrants or rights (in shares) | shares 100,000              
Exercise period of warrant 5 years              
Exercise price of warrants (in dollars per share) | $ / shares $ 1.00              
Fair value of warrants outstanding $ 118,000              
Deferred financing costs       112,100 118,000      
Revolving Credit Facility                
Debt Instrument [Line Items]                
Restricted cash $ 5,000,000              
Two Thousand Eighteen Credit Facility Agreement | Revolving Credit Facility                
Debt Instrument [Line Items]                
Line of credit, maximum borrowing capacity   $ 5,000,000           $ 5,000,000
Line of credit, outstanding balance       5,000,000 $ 5,000,000      
Extension period   1 year            
Deferred financing costs       $ 57,401        
Debt instrument, extension term     1 year          
Proceeds from lines of credit     $ 5,000,000          
Two Thousand Eighteen Credit Facility Agreement | Revolving Credit Facility | Minimum                
Debt Instrument [Line Items]                
Interest rate of debt (as a percent)               12.00%
Two Thousand Eighteen Credit Facility Agreement | Revolving Credit Facility | Maximum                
Debt Instrument [Line Items]                
Interest rate of debt (as a percent)   14.00%            
Two Thousand Eighteen Credit Facility Agreement | Revolving Credit Facility | Warrant                
Debt Instrument [Line Items]                
Number of securities called by warrants or rights (in shares) | shares     50,000          
Exercise price of warrants (in dollars per share) | $ / shares     $ 5.85          
Fair value of warrants outstanding     $ 137,500